• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit / 20148878369
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: refactor-dag-circuit-use-local-bits
DEFAULT BRANCH: main
Ran 11 Dec 2025 10:44PM UTC
Jobs 1
Files 884
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Dec 2025 10:04PM UTC coverage: 88.304% (+0.004%) from 88.3%
20148878369

push

github

web-flow
Add ways to retrieve operations from the ``QkTarget`` (#15283)

* Initial: Add `QkTargetOperation` to the C-API
- Add struct ``QkTargetOperation`` which contains an operation type, a name, the number of qubits, and the parameters of the instruction.
    - The struct can only be returned via the usage of `qk_target_op_get` (name subject to change).
- If a user wanted to retreive the operation instance, in this case, a gate, we can use `qk_target_op_try_gate` to retrieve the instance, it is the user's responsibility to check whether this instance's type is `QkOperationKind_Gate`.

* Docs: Add documentation

* Test: Add tests

* Fix: initial review comments
- Rename `QkTargetOperation` to `QkTargetOp`.
- Document that users should not tamper with `CTargetOp` mutably.
- Remove `ExitCode` return from `qk_target_op_get`.
- Rename `target_op_try_gate` to `target_op_gate`.

* Docs: Add release note.

* Fix: Use actual number of parameters for `QkTargetOp`,

* Add: Support for returning variadics
- To support variadics, we added support to retrieve operations typed `QkOperationKind::PythonOp` and setting the number of qubits and parameters as `u32::MAX`.

* Fix: Review items

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Chore: Rename `COperationKind::PythonOp` to `Unknwon`.

---------

Co-authored-by: Julien Gacon <gaconju@gmail.com>

65 of 98 new or added lines in 2 files covered. (66.33%)

7 existing lines in 3 files now uncovered.

96636 of 109436 relevant lines covered (88.3%)

1203655.24 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
86.52
0.0% crates/cext/src/dag.rs
32
87.13
-4.78% crates/cext/src/transpiler/target.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.82
-0.24% crates/qasm2/src/expr.rs
3
72.9
-0.12% crates/circuit/src/parameter/symbol_expr.rs
3
92.8
1.29% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 20148878369.1 11 Dec 2025 10:44PM UTC 884
88.3
GitHub Action Run
Source Files on build 20148878369
  • Tree
  • List 884
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20148878369
  • 3bf641b1 on github
  • Prev Build on gh-readonly-queue/main/pr-14981-3a3802cae4dcb3799211c3f6eecdb361fe52fbeb (#20145282592)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc