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

Qiskit / qiskit / 15308608693 / 1
88%
main: 88%

Build:
DEFAULT BRANCH: main
Ran 28 May 2025 07:43PM UTC
Files 815
Run time 23s
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.1

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

79540 of 90558 relevant lines covered (87.83%)

414803.29 hits per line

Source Files on job 15308608693.1
  • Tree
  • List 815
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15308608693
  • d7b9acc8 on github
  • Prev Job for on main (#15307116286.1)
  • Next Job for on main (#15309125608.1)
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