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

Qiskit / qiskit / 12891072018
88%

Build:
DEFAULT BRANCH: main
Ran 21 Jan 2025 04:35PM UTC
Jobs 1
Files 913
Run time 6min
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

21 Jan 2025 03:22PM UTC coverage: 88.927% (-0.03%) from 88.956%
12891072018

push

github

web-flow
Bump PyO3 and rust-numpy to 0.23.x (#13577)

* Bump PyO3 and rust-numpy to 0.23.x

This commit bumps the version of pyo3 and rust-numpy used by qiskit to
the latest release 0.23. The largest change by volume of code is the
deprecation of all the `*_bound()` methods. These are just warnings but
they would be fatal to our CI so it needs to be updated. THe larger
functional change that required updating the code is the change in the
traits around converting to Python objects. This actually found a bug in
the target where we were not returning a proper instruction type for
standard gates. This also opens up the opportunity to update our
hashbrown version to 0.15.x, but we can't do that until the next
rustworkx-core release.

* Fix cache pygates build

* Fix cargo test

* Fix impl of IntoPyObject for target's operation

* Fix impl of IntoPyObject for equivalence library circuit

* Remove commented out code

* Fix commutation library conversion

* Fix conversion of qasm3 py register type

* Use into_py_any()

* Use borrowed instead of cloning py bound for NormalOperation

* Fix unitary synthesis failure

In pyo3 0.23 the behavior of the default conversion for a `SmallVec<u8>`
and similar arrays of u8 default to bytes objects when converted to
python. This was documented as an api change in the release, however it
was cauing the unitary synthesis test to fail because when we were
evaluating whether the synthesis was in terms of the natural direction
of the 2q gate on the backend it was evaluating `[0, 1] == b"\x00\x11"`
which evaluates to `False` and the pass flipped the direction of the
2q gate. This was causing the test failure because all the 2q gates
which were correctly directed were getting incorrectly flipped. This
commit fixes this by manually creating a pylist so the comparisons work
as expected.

* Fix cargo fmt

* Apply suggestions from code review

Co-authored-by: Kevin Hartman <kevin@hart.mn>

* Fix compilation error

* Use into_py_any in missed... (continued)

870 of 1001 new or added lines in 58 files covered. (86.91%)

39 existing lines in 14 files now uncovered.

79463 of 89358 relevant lines covered (88.93%)

351805.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.98
-0.4% crates/accelerate/src/consolidate_blocks.rs
1
93.57
0.02% crates/accelerate/src/sparse_pauli_op.rs
1
93.41
-0.07% crates/accelerate/src/synthesis/linear/mod.rs
1
80.0
-0.2% crates/circuit/src/dag_node.rs
1
94.64
-1.51% crates/circuit/src/lib.rs
1
72.24
-0.26% crates/qasm3/src/build.rs
2
95.28
-2.78% crates/accelerate/src/commutation_analysis.rs
2
90.17
0.0% crates/accelerate/src/results/marginalization.rs
3
40.91
-1.95% crates/accelerate/src/utils.rs
4
87.88
0.0% crates/qasm3/src/lib.rs
5
91.6
-0.22% crates/accelerate/src/euler_one_qubit_decomposer.rs
10
92.11
-0.07% crates/accelerate/src/two_qubit_decompose.rs
10
75.93
-0.74% crates/circuit/src/circuit_instruction.rs
11
0.0
0.0% crates/circuit/src/dot_utils.rs
17
78.18
-0.84% crates/qasm3/src/circuit.rs
18
89.3
-0.11% crates/circuit/src/dag_circuit.rs
19
32.87
0.0% crates/accelerate/src/sabre/heuristic.rs
24
81.76
-1.2% crates/accelerate/src/target_transpiler/mod.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
75.93
-0.74% crates/circuit/src/circuit_instruction.rs
1
97.33
-0.25% crates/accelerate/src/gate_direction.rs
1
95.04
0.05% crates/accelerate/src/sparse_observable.rs
1
97.28
-0.19% crates/accelerate/src/commutation_checker.rs
1
95.28
-2.78% crates/accelerate/src/commutation_analysis.rs
1
78.18
-0.84% crates/qasm3/src/circuit.rs
1
40.91
-1.95% crates/accelerate/src/utils.rs
2
92.97
-0.24% crates/accelerate/src/unitary_synthesis.rs
2
95.25
-0.17% crates/circuit/src/circuit_data.rs
3
81.76
-1.2% crates/accelerate/src/target_transpiler/mod.rs
4
32.87
0.0% crates/accelerate/src/sabre/heuristic.rs
4
92.23
0.0% crates/qasm2/src/lex.rs
6
97.61
-0.47% crates/qasm2/src/parse.rs
11
89.3
-0.11% crates/circuit/src/dag_circuit.rs
Jobs
ID Job ID Ran Files Coverage
1 12891072018.1 21 Jan 2025 04:35PM UTC 913
88.93
GitHub Action Run
Source Files on build 12891072018
  • Tree
  • List 913
  • Changed 90
  • Source Changed 61
  • Coverage Changed 40
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12891072018
  • 9ddb6e2f on github
  • Prev Build on gh-readonly-queue/main/pr-13702-3c111be12bbc2cf51f655e0016cf3dd5b43e6800 (#12889426145)
  • Next Build on main (#12894787125)
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