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

Qiskit / qiskit / 14707996125
88%

Build:
DEFAULT BRANCH: main
Ran 28 Apr 2025 01:00PM 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.895% (-0.02%) from 87.91%
14707996125

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%)

25 existing lines in 4 files now uncovered.

74466 of 84722 relevant lines covered (87.89%)

433815.74 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
1
94.23
-0.23% crates/qasm2/src/expr.rs
2
95.97
-1.61% qiskit/synthesis/unitary/qsd.py
4
91.98
-0.25% crates/qasm2/src/lex.rs
18
95.76
-1.39% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 14707996125.1 28 Apr 2025 01:00PM UTC 804
87.89
GitHub Action Run
Source Files on build 14707996125
  • Tree
  • List 804
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14707996125
  • fa16a2ed on github
  • Prev Build on gh-readonly-queue/main/pr-14251-6400d4c32e6de1edbc78f6896aec3129aee32450 (#14693546176)
  • Next Build on main (#14716056998)
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