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

Qiskit / qiskit / 13639704391
87%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 03 Mar 2025 08:42PM UTC
Jobs 1
Files 863
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

03 Mar 2025 08:21PM UTC coverage: 87.081% (-0.002%) from 87.083%
13639704391

push

github

web-flow
[Stretch] Support `Duration` type in classical expressions. (#13844)

* 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 Dur... (continued)

114 of 163 new or added lines in 13 files covered. (69.94%)

4 existing lines in 3 files now uncovered.

75958 of 87227 relevant lines covered (87.08%)

330918.24 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.08
-1.21% qiskit/circuit/classical/types/types.py
2
88.4
-0.43% qiskit/qasm3/printer.py
2
87.88
0.74% qiskit/qpy/binary_io/value.py
13
55.17
crates/circuit/src/duration.rs
14
93.46
-2.75% qiskit/qasm3/exporter.py
17
76.85
-5.5% qiskit/qpy/type_keys.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.39
0.1% crates/accelerate/src/unitary_synthesis.rs
1
76.85
-5.5% qiskit/qpy/type_keys.py
2
87.88
0.74% qiskit/qpy/binary_io/value.py
Jobs
ID Job ID Ran Files Coverage
1 13639704391.1 03 Mar 2025 08:42PM UTC 863
87.08
GitHub Action Run
Source Files on build 13639704391
  • Tree
  • List 863
  • Changed 17
  • Source Changed 14
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13639704391
  • 7a1d51bc on github
  • Prev Build on main (#13636184568)
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