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

Qiskit / qiskit / 20149522919
88%

Build:
DEFAULT BRANCH: main
Ran 11 Dec 2025 11:09PM 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.29% (-0.01%) from 88.3%
20149522919

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%)

10 existing lines in 4 files now uncovered.

96621 of 109436 relevant lines covered (88.29%)

1203824.79 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
82.3
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
93.32
-0.09% crates/transpiler/src/passes/unitary_synthesis.rs
2
72.94
-0.08% crates/circuit/src/parameter/symbol_expr.rs
6
97.09
0.94% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 20149522919.1 11 Dec 2025 11:09PM UTC 884
88.29
GitHub Action Run
Source Files on build 20149522919
  • Tree
  • List 884
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20149522919
  • 3bf641b1 on github
  • Prev Build on gh-readonly-queue/main/pr-14981-3a3802cae4dcb3799211c3f6eecdb361fe52fbeb (#20145282592)
  • Next Build on main (#20150489857)
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

© 2025 Coveralls, Inc