Ran
|
Jobs
1
|
Files
832
|
Run time
2min
|
Badge
Embed ▾
README BADGES
|
push
github
Fix `QuantumCircuit.depth` with zero-operands and `Expr` nodes (#12429) (#12528) This causes `QuantumCircuit.depth` to correctly handle cases where a circuit instruction has zero operands (such as `GlobalPhaseGate`), and to treat classical bits and real-time variables used inside `Expr` conditions as part of the depth calculations. This is in line with `DAGCircuit`. This commit still does not add the same `recurse` argument from `DAGCircuit.depth`, because the arguments for not adding it to `QuantumCircuit.depth` at the time still hold; there is no clear meaning to it for general control flow from a user's perspective, and it was only added to the `DAGCircuit` methods because there it is more of a proxy for optimising over all possible inner blocks. (cherry picked from commit d18a74cd4) Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
24 of 24 new or added lines in 1 file covered. (100.0%)
6 existing lines in 1 file now uncovered.62268 of 69462 relevant lines covered (89.64%)
230377.92 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
6 |
93.13 |
0.51% | crates/qasm2/src/lex.rs |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 9419231596.1 | 832 |
89.64 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|