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

Qiskit / qiskit / 13688561003
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 06 Mar 2025 01:03AM UTC
Jobs 1
Files 845
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

06 Mar 2025 12:41AM UTC coverage: 88.093% (-0.004%) from 88.097%
13688561003

push

github

web-flow
Add representation of `box` (#13869)

* Add representation of `box`

This adds in the base `box` control-flow construction, with support for
containing instructions and having a literal delay, like the `Delay`
instruction.

This supports basic output to OpenQASM 3, QPY and some rudimentary
support in the text and mpl drawers.  The transpiler largely handles
things already, since control flow is handled generically in most
places.

Known issues:

- We expect this to be able to accept stretches in its duration, just as
  `Delay` can, which will need a follow-up.
- We expect `Box` to support "annotations" in a future release of
  Qiskit.
- There is currently no way in OpenQASM 3 to represent a qubit that is
  idle during a `box` without inserting a magic instruction on it.
- IBM backends don't claim support for `box` yet, so `transpile` against
  a backend will fail, though you can modify the `Target` to add the
  instruction manually.

Add tests of box

* Add QPY backwards-compatibility test

* Add `BoxOp.body` getter and tests

111 of 118 new or added lines in 11 files covered. (94.07%)

18 existing lines in 3 files now uncovered.

75228 of 85396 relevant lines covered (88.09%)

334350.47 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.04
qiskit/circuit/controlflow/box.py
6
48.96
-0.3% qiskit/visualization/circuit/matplotlib.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
94.39
-0.1% crates/accelerate/src/unitary_synthesis.rs
4
91.73
0.0% crates/qasm2/src/lex.rs
12
96.68
-0.93% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 13688561003.1 06 Mar 2025 01:03AM UTC 845
88.09
GitHub Action Run
Source Files on build 13688561003
  • Tree
  • List 845
  • Changed 16
  • Source Changed 12
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13688561003
  • b77a8224 on github
  • Prev Build on main (#13688468214)
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