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

Qiskit / qiskit / 16331077210
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: dag/to-circuit
DEFAULT BRANCH: main
Ran 16 Jul 2025 10:21PM UTC
Jobs 1
Files 827
Run time 2min
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

16 Jul 2025 09:50PM UTC coverage: 87.718% (+0.02%) from 87.702%
16331077210

push

github

web-flow
Fix doc example for `qk_circuit_get_instruction` (#14737) (#14750)

* Fix doc example for `qk_circuit_get_instruction`

This example now passes the newly allocated `inst` to `qk_circuit_get_instruction`, matching the signature expected by the function and the examples in `test_circuit.c`.

Alternatively, I believe the whole thing could be simplified (and have slightly better performance) by using stack allocation:

```c
QkCircuitInstruction inst;
QkCircuit *qc = qk_circuit_new(100);
uint32_t qubit[1] = {0};
qk_circuit_gate(qc, QkGate_H, qubit, NULL);
qk_circuit_get_instruction(qc, 0, &inst);
```

Then one would access its members using `inst.` instead of `inst->`.

* Stack allocate the `QkCircuitInstruction`

(cherry picked from commit 50523425c)

Co-authored-by: Jim Garrison <garrison@ibm.com>

80102 of 91318 relevant lines covered (87.72%)

511942.66 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.69
-0.04% crates/circuit/src/symbol_expr.rs
1
93.67
-0.24% crates/qasm2/src/expr.rs
1
92.27
1.03% crates/qasm2/src/lex.rs
1
93.43
0.0% crates/transpiler/src/passes/unitary_synthesis.rs
Jobs
ID Job ID Ran Files Coverage
1 16331077210.1 16 Jul 2025 10:21PM UTC 827
87.72
GitHub Action Run
Source Files on build 16331077210
  • Tree
  • List 827
  • Changed 6
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16331077210
  • 0ec20cf9 on github
  • Prev Build on gh-readonly-queue/stable/2.1/pr-14734-6dd1267466e6effb9b1a60e98ecaae1ac718e5b2 (#16291194897)
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