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

Qiskit / qiskit / 14707397775
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 28 Apr 2025 12:31PM UTC
Jobs 1
Files 804
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

28 Apr 2025 12:07PM UTC coverage: 87.918% (+0.008%) from 87.91%
14707397775

push

github

web-flow
Port cosine-sine decomposition to Rust. (#14233)

* [WIP] Port Cosine Sine Decomposition to Rust

This commit is the start of porting the cosine sine decomposition to
rust. Tket has a specialized implementation in their code using eigen
for the same problem space we need in qiskit for the qsd. This
commit attempts to port their implementation into Rust for qiskit so we
can have a native decomposition in rust. To start this just calls the
function via python. But this is just a short term step to validate the
implementation is correct. The eventual goal is to just replace the
python implemenation of qsd and never expose this function to Python.
This is just an intermediate steps towards working for that.

* Ensure we pass a numpy array to rust

* Finishing the implementation of the cos-sin decomposition

* more comments

* slightly decreasing the expected accuracy for TwoQubitWeylDecomposition

* Adding CSD tests

* removing unnecessary clone; slightly improving comments

* typo

* more typos/comments

* decreasing expected tolerance for test_diagonal

* undoing the change of increasing tolerance

* improve unitariness of r1; strengthen tests

* fix typos and add tests following review comments

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

145 of 155 new or added lines in 4 files covered. (93.55%)

18 existing lines in 3 files now uncovered.

74486 of 84722 relevant lines covered (87.92%)

433551.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
93.38
crates/accelerate/src/cos_sin_decomp.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
95.97
-1.61% qiskit/synthesis/unitary/qsd.py
4
92.23
0.0% crates/qasm2/src/lex.rs
12
97.15
0.0% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 14707397775.1 28 Apr 2025 12:31PM UTC 804
87.92
GitHub Action Run
Source Files on build 14707397775
  • Tree
  • List 804
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14707397775
  • fa16a2ed on github
  • Prev Build on gh-readonly-queue/main/pr-14251-6400d4c32e6de1edbc78f6896aec3129aee32450 (#14693546176)
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