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

Qiskit / qiskit-paulice / 41522845378
100%

Build:
DEFAULT BRANCH: main
Ran 02 Nov 2026 08:51PM UTC
Jobs 1
Files 6
Run time 1min
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

02 Nov 2026 08:50PM UTC coverage: 100.0%. Remained the same
41522845378

push

github

web-flow
Build the circuits returned by `add_pauli_checks` on first read (#87)

* Assemble output circuits only when they are read

add_pauli_checks built every output circuit before returning, one per
target qubit. Each one is rebuilt with its registers and measurements
and translated back to the input basis.

The documented access patterns read almost none of them.
result[-1].circuit wants one circuit and got one per target; reading
[c.cost for c in result] to watch the cost converge wants none. So the
returned CheckedCircuit instances now build their circuit on first
read and keep it, releasing the builder once the build succeeds. Check
metadata is still set eagerly, so the returned sequence's shape and
contents are unchanged. The terminal-measurement validation runs when
the circuit is built.

One consequence is visible to callers and is in the release note: when
the gate set cannot express the inserted checks, the UserWarning now
surfaces on that first read rather than from add_pauli_checks itself,
so code asserting on it has to read the circuit inside the same block.

Signed-off-by: Liegeois, Kim <Kim.Liegeois@amd.com>

* Convert picker variants on demand

This is the other half of building output circuits on first read. The
output circuit of a variant was assembled when it was read, but the
picker circuit it is assembled from was still converted out of the Rust
representation for every variant before add_pauli_checks returned, so
a caller reading one variant still paid one Qiskit circuit construction
per target.

The searches now record, per variant, a snapshot of the picker's gate
list and convert it into a Qiskit circuit only when that variant is
read. Taking the snapshot is cheap; the conversion, which Qiskit
validates instruction by instruction, is what is deferred. Output is
unchanged.

Signed-off-by: Liegeois, Kim <Kim.Liegeois@amd.com>

* Simplify CheckedCircuit pickle state

Reading the circuit drops the unpicklable builder, and pickle's default... (continued)

662 of 662 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41522845378.1 02 Nov 2026 08:51PM UTC 6
100.0
GitHub Action Run
Source Files on build 41522845378
  • Tree
  • List 6
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41522845378
  • a58dd2b0 on github
  • Prev Build on main (#41502892709)
  • Next Build on main (#41855056010)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc