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

Qiskit / qiskit / 13692928291
89%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 06 Mar 2025 07:11AM UTC
Jobs 1
Files 787
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 06:50AM UTC coverage: 88.519% (-0.1%) from 88.625%
13692928291

push

github

web-flow
[Stretch] Add `stretch` variable support to `QuantumCircuit`. (#13852)

* WIP

* Add try_const to lift.

* Try multiple singletons, new one for const.

* Revert "Try multiple singletons, new one for const."

This reverts commit e2b322125.

* Remove Bool singleton test.

* Add const handling for stores, fix test bugs.

* Fix formatting.

* Remove Duration and Stretch for now.

* Cleanup, fix const bug in index.

* Fix ordering issue for types with differing const-ness.

Types that have some natural order no longer have an ordering
when one of them is strictly greater but has an incompatible
const-ness (i.e. when the greater type is const but the other
type is not).

* Fix QPY serialization.

We need to reject types with const=True in QPY until it supports them.

For now, I've also made the Index and shift operator constructors
lift their RHS to the same const-ness as the target to make it
less likely that existing users of expr run into issues when
serializing to older QPY versions.

* Make expr.Lift default to non-const.

This is probably a better default in general, since we
don't really have much use for const except for timing
stuff.

* Revert to old test_expr_constructors.py.

* Make binary_logical lift independent again.

Since we're going for using a Cast node when const-ness
differs, this will be fine.

* Update tests, handle a few edge cases.

* Fix docstring.

* Remove now redundant arg from tests.

* Add const testing for ordering.

* Add const tests for shifts.

* Add release note.

* Add const store tests.

* Address lint, minor cleanup.

* Add Float type to classical expressions.

* Allow DANGEROUS conversion from Float to Bool.

I wasn't going to have this, but since we have DANGEROUS
Float => Int, and we have Int => Bool, I think this makes the
most sense.

* Test Float ordering.

* Improve error messages for using Float with logical operators.

* Float tests for constructors.

* Add release note.

* Add D... (continued)

348 of 503 new or added lines in 21 files covered. (69.18%)

8 existing lines in 3 files now uncovered.

71849 of 81168 relevant lines covered (88.52%)

352500.75 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
76.62
-0.71% qiskit/circuit/_classical_resource_map.py
1
96.97
-0.97% qiskit/circuit/controlflow/_builder_utils.py
1
93.45
-0.15% qiskit/qasm3/exporter.py
1
96.67
-1.55% qiskit/transpiler/passes/layout/apply_layout.py
1
98.04
-1.96% qiskit/transpiler/passes/optimization/contract_idle_wires_in_control_flow.py
2
88.65
-0.06% qiskit/qasm3/printer.py
2
94.74
-0.96% qiskit/transpiler/passes/layout/sabre_layout.py
4
92.37
-2.01% qiskit/circuit/classical/expr/visitors.py
6
71.43
-19.05% qiskit/circuit/controlflow/control_flow.py
8
82.78
-0.85% qiskit/qpy/binary_io/value.py
11
92.31
-5.16% qiskit/circuit/classical/expr/expr.py
14
92.97
-0.39% qiskit/circuit/quantumcircuit.py
33
83.75
-10.58% qiskit/circuit/controlflow/builder.py
70
86.28
-1.02% crates/circuit/src/dag_circuit.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.49
0.1% crates/accelerate/src/unitary_synthesis.rs
1
86.28
-1.02% crates/circuit/src/dag_circuit.rs
6
91.48
-1.0% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 13692928291.1 06 Mar 2025 07:11AM UTC 787
88.52
GitHub Action Run
Source Files on build 13692928291
  • Tree
  • List 787
  • Changed 25
  • Source Changed 22
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13692928291
  • f82689f8 on github
  • Prev Build on main (#13690593337)
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