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

Qiskit / qiskit / 15308608693
88%

Build:
DEFAULT BRANCH: main
Ran 28 May 2025 07:43PM UTC
Jobs 1
Files 815
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 May 2025 06:48PM UTC coverage: 87.833% (+0.005%) from 87.828%
15308608693

push

github

web-flow
Add method to get a UnitaryGate ArrayView2 without copying (#14249)

* Add method to get a UnitaryGate ArrayView2 without copying

This commit adds a new method `UnitaryGate::matrix_view()` which
returns an ArrayView2 without copying data or allocating a new array.
We have direct access to an owned array when we're working with a
UnitaryGate in a circuit so for things that are read only on that matrix
we can work with a view and avoid a copy or conversion. Ndarray is
also flexible enough that we can provide a view on top of an nalgebra
matrix and not need to copy the data. After adding the method places
where this is used in the transpiler are updated to leverage the method.

At the same time this commit reworks the use of the dag builder
interface the two passes that are using this new method. Previously,
they were using it incorrectly, or not at all. Since the code was all
being refactored this was cleaned up as part of the refactoring.

* Update top half of split unitary pass too

* Remove another to_vec

* Fix rebase issues

* Fix rebase issues

* Add docstring to matrix_view() method

117 of 123 new or added lines in 3 files covered. (95.12%)

7 existing lines in 4 files now uncovered.

79540 of 90558 relevant lines covered (87.83%)

414803.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.62
-0.81% crates/transpiler/src/passes/split_2q_unitaries.rs
5
94.57
-0.28% crates/transpiler/src/passes/unitary_synthesis.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
75.39
0.32% crates/circuit/src/symbol_expr.rs
1
96.62
-0.81% crates/transpiler/src/passes/split_2q_unitaries.rs
1
94.57
-0.28% crates/transpiler/src/passes/unitary_synthesis.rs
4
92.73
-0.25% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 15308608693.1 28 May 2025 07:43PM UTC 815
87.83
GitHub Action Run
Source Files on build 15308608693
  • Tree
  • List 815
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15308608693
  • d7b9acc8 on github
  • Prev Build on main (#15307116286)
  • Next Build on main (#15309125608)
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