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

Qiskit / qiskit / 9419231596
90%
main: 88%

Build:
Build:
LAST BUILD BRANCH: fix-15509-substitute-node-variables
DEFAULT BRANCH: main
Ran 07 Jun 2024 03:28PM UTC
Jobs 1
Files 832
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

07 Jun 2024 02:32PM UTC coverage: 89.643% (+0.01%) from 89.629%
9419231596

push

github

web-flow
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

Jobs
ID Job ID Ran Files Coverage
1 9419231596.1 07 Jun 2024 03:28PM UTC 0
89.64
GitHub Action Run
Source Files on build 9419231596
Detailed source file information is not available for this build.
  • Back to Repo
  • ee133ef8 on github
  • Prev Build on stable/1.1 (#9414508323)
  • Next Build on stable/1.1 (#9448911818)
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