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

Qiskit / qiskit / 20969635435
88%

Build:
DEFAULT BRANCH: main
Ran 13 Jan 2026 07:57PM UTC
Jobs 1
Files 885
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

13 Jan 2026 06:57PM UTC coverage: 88.315% (-0.02%) from 88.334%
20969635435

push

github

web-flow
Move to rust native errors for rust apis in CircuitData (#15279)

* Move to rust native errors for rust apis in CircuitData

This commit migrates the CircuitData struct to have it's own new error
enum CircuitDataError. This error type encapsulates all the possible
error conditions returned from CircuitData methods and is used directly
in rust. This has two goals, first it enables us to return real error
messages to the C API, and secondly it decouples are rust code from
Python as part of #14240. To enable a build without pyo3 we need to
stop using PyErr in a pure rust context. The idea being that pymethods
will be conditionally compiled and not built, but the other methods that
aren't exposed to python will need to be returning rust error types. One
thing to note is there is at least one method still using a PyResult,
in those cases the methods will be conditionally compiled. Similarly
there is an ErrorFromPython variant in the new CircuitDataError, this
will also be conditionally compiled out, but is necessary because it's
used in places where we are calling python explicitly and need to handle
the error return from that.

Fixes #15027

* Mark error enums as non-exhaustive and document their purpose

This commit adds the non_exhaustive attribute to all the error enums.
While we're using them there is the likelihood we'll add on to them with
new errors as methods are added. This also documents the enums are an
incremental step towards each function owning its error type as part of
the interface. These enums are just the first step towards that by
making it all explicitly defined. Eventually we'll want to split these
off into specific types that are specified per function/method instead
of being bundled together in a single enum.

* PR review of Qiskit/qiskit#15279 (#32)

* Add `thiserror` conversion traits

This uses the `thiserror::Error` derive-macro attributes
`#[error(transparent)]` and `#[from]` to remove boiler plate when
nesting other errors in... (continued)

389 of 448 new or added lines in 25 files covered. (86.83%)

31 existing lines in 6 files now uncovered.

96909 of 109731 relevant lines covered (88.32%)

1206322.46 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.66
-0.32% crates/circuit_library/src/pauli_evolution.rs
1
99.21
-0.79% crates/circuit_library/src/pauli_feature_map.rs
1
94.38
-1.07% crates/circuit_library/src/quantum_volume.rs
1
90.0
-0.36% crates/synthesis/src/evolution/pauli_network.rs
1
95.9
-0.44% crates/synthesis/src/linear/lnn.rs
1
98.92
-1.08% crates/synthesis/src/linear/pmh.rs
1
98.09
-0.6% crates/synthesis/src/linear_phase/cx_cz_depth_lnn.rs
1
86.67
-4.24% crates/synthesis/src/linear_phase/mod.rs
1
96.15
-3.85% crates/synthesis/src/multi_controlled/mod.rs
1
98.25
-1.75% crates/synthesis/src/qft/qft_decompose_lnn.rs
2
80.38
1.71% crates/circuit/src/object_registry.rs
2
95.06
-2.2% crates/circuit_library/src/iqp.rs
2
98.25
-1.14% crates/circuit_library/src/multi_local.rs
2
94.29
-5.71% crates/synthesis/src/clifford/mod.rs
2
86.84
-2.35% crates/synthesis/src/multi_controlled/mcmt.rs
2
93.13
-0.06% crates/synthesis/src/qsd.rs
2
90.83
-0.09% crates/synthesis/src/two_qubit_decompose.rs
3
95.71
1.03% crates/synthesis/src/multi_controlled/mcx.rs
4
95.41
-3.61% crates/synthesis/src/permutation/mod.rs
28
89.83
0.22% crates/circuit/src/circuit_data.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
82.3
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
93.82
-0.24% crates/qasm2/src/expr.rs
4
92.29
0.0% crates/qasm2/src/lex.rs
5
89.83
0.22% crates/circuit/src/circuit_data.rs
8
72.82
-0.33% crates/circuit/src/parameter/symbol_expr.rs
12
97.09
-0.94% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 20969635435.1 13 Jan 2026 07:57PM UTC 885
88.32
GitHub Action Run
Source Files on build 20969635435
  • Tree
  • List 885
  • Changed 33
  • Source Changed 27
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20969635435
  • f056fd08 on github
  • Prev Build on gh-readonly-queue/main/pr-15435-188c172c8ef9461eb09a0cb162451148f5ea035e (#20961785031)
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

© 2026 Coveralls, Inc