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

Qiskit / qiskit / 16327707788
88%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2025 07:16PM UTC
Jobs 1
Files 830
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 06:20PM UTC coverage: 87.766% (-0.001%) from 87.767%
16327707788

push

github

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

* 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`

81476 of 92833 relevant lines covered (87.77%)

548360.57 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
73.86
0.08% crates/circuit/src/symbol_expr.rs
5
92.27
-0.77% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 16327707788.1 16 Jul 2025 07:16PM UTC 830
87.77
GitHub Action Run
Source Files on build 16327707788
  • Tree
  • List 830
  • Changed 3
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16327707788
  • 50523425 on github
  • Prev Build on gh-readonly-queue/main/pr-14650-76c3337b53cf386d78968854a10d9225982ebb44 (#16324119569)
  • Next Build on main (#16388825040)
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