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

Qiskit / qiskit / 19169744603
88%

Build:
DEFAULT BRANCH: main
Ran 07 Nov 2025 02:05PM UTC
Jobs 1
Files 875
Run time 4min
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 Nov 2025 01:00PM UTC coverage: 88.162% (-0.002%) from 88.164%
19169744603

push

github

web-flow
Skip intermediate PyList in PauliProductMeasurement::create_py_op() (#15310)

In the recently merged #15126 the PauliProductMeasurement operation
being added to Rust was unecessarily creating a pylist to go from
`Vec<bool>` -> `np.array[bool]` for the z and x parameters while we can
leverage rust-numpy to go straight from a Vec to a numpy array. This
was raised in review for the PR, but the fix just changed the mechanism
a Pylist was created by and didn't actually remove the python list
creation. `into_bound_py_any()` just is a short cut for using the
default IntoPyObject trait's conversion and casting it as a PyAny. In
the case of `Vec<T>` that means it's converting to a `PyList<T>`. Doing
this still results in 2 copies, one of which is done in Python. This
commit fixes the issue by using `to_pyarray()` to copy the Vec<bool>
directly into a numpy owned array. We have to copy still since we aren't
deleting the owning PauliProductMeasurement in Rust so we can't use
`into_pyarray()` which would avoid that copy. But this sill reduces the
numbers of copies needed to make the numpy arrays in Python.

2 of 2 new or added lines in 1 file covered. (100.0%)

11 existing lines in 4 files now uncovered.

94214 of 106865 relevant lines covered (88.16%)

1131662.78 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
81.99
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
93.32
1.54% crates/qasm2/src/lex.rs
1
92.57
-0.1% crates/transpiler/src/passes/unitary_synthesis.rs
8
72.98
-0.29% crates/circuit/src/parameter/symbol_expr.rs
Jobs
ID Job ID Ran Files Coverage
1 19169744603.1 07 Nov 2025 02:05PM UTC 875
88.16
GitHub Action Run
Source Files on build 19169744603
  • Tree
  • List 875
  • Changed 5
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19169744603
  • fa76cad1 on github
  • Prev Build on gh-readonly-queue/main/pr-15126-cbddd2f501ed139affbb7581d50b6918d47ef9d3 (#19163192039)
  • Next Build on main (#19197670304)
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