|
Ran
|
Jobs
1
|
Files
827
|
Run time
2min
|
Badge
README BADGES
|
push
github
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>
80098 of 91318 relevant lines covered (87.71%)
511755.32 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
93.43 |
0.0% | crates/transpiler/src/passes/unitary_synthesis.rs |
| 3 |
92.01 |
0.77% | crates/qasm2/src/lex.rs |
| 12 |
97.1 |
0.0% | crates/qasm2/src/parse.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 16331523505.1 | 827 |
87.71 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|