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

Qiskit / qiskit / 17643780183
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: add-litinski-to-asv
DEFAULT BRANCH: main
Ran 11 Sep 2025 12:39PM UTC
Jobs 1
Files 868
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

11 Sep 2025 11:59AM UTC coverage: 88.234% (-0.2%) from 88.391%
17643780183

push

github

web-flow
Rust Shannon Decomposition (#14797)

* [WIP] Port QSD to rust

This commit implements the quantum shannon decomposition algorithm in
rust based on the current Python qs_decomposition function implementation.
This function doesn't support the arbitrary 1q and 2q decomposer
arguments so the Python version of the function is retained and used
while those arguments are supported.

Fixes #12213

* Added ZXZ decomposition; working on random unitaries for 4 qubits but failing on 5

* Fix merge conflicts

This commit fixes merge conflicts as the original qsd implementation in
the first commit is about one month old and the APIs it used on main
have changed slightly in the intervening time.

* Fix failures for 2-qubit matrices by using closest unitary

* Code cleanup

* Changes according to PR review

* A2 optimization fixes

* Fix for axes handling in `extract_multiplex_blocks`

* Linting

* add condition number calculation (not actually needed for QSD but may be generally useful)

* add verification checks for linear algebra methods

* replace svd by try_svd

* update atol

* remove verify

* add closest_unitary

* remove closest_unitary

* update atol as a function of the number of qubits

* add move verification methods. add closest_unitary in demultiplex.

* update tol in tests to 1e-6

* minor fix

* update EPS in internal verification

* update EPS in internal verification

* update EPS in internal verification

* update tolerance in tests

* try to make linux-arm tests pass

* replace nalgebra SVD by faer SVD.
Co-authored-by: Alexander Ivrii <alexi@il.ibm.com>

* update SVD to faer, updating bounds, formatting

* update bounds in tests

* update bounds, formatting

* update bounds in tests

* debug_assert in verification functions

* ignore clippy errors in stack!

* replace zero by 0 in stack

* fix lint errors

* Changes according to PR review

* Switch to default faer-nalgebra conversions, Partially return closest_unitary

* Return all closest_unita... (continued)

697 of 785 new or added lines in 8 files covered. (88.79%)

172 existing lines in 4 files now uncovered.

92741 of 105108 relevant lines covered (88.23%)

534622.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
21.0
-77.41% qiskit/synthesis/unitary/qsd.py
19
73.97
crates/synthesis/src/linalg/mod.rs
27
90.09
-1.07% crates/circuit/src/circuit_data.rs
40
93.19
crates/synthesis/src/qsd.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.15
0.04% crates/circuit/src/parameter/symbol_expr.rs
6
91.49
-0.77% crates/qasm2/src/lex.rs
12
97.09
-0.94% crates/qasm2/src/parse.rs
153
21.0
-77.41% qiskit/synthesis/unitary/qsd.py
Jobs
ID Job ID Ran Files Coverage
1 17643780183.1 11 Sep 2025 12:39PM UTC 868
88.23
GitHub Action Run
Source Files on build 17643780183
  • Tree
  • List 868
  • Changed 10
  • Source Changed 7
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17643780183
  • 514bdb46 on github
  • Prev Build on gh-readonly-queue/main/pr-15002-2d73e5d93c842d0c8fc253e6f97ca0c927474141 (#17582622357)
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