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

Qiskit / qiskit / 23546949171
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-15951-12bb3efc7624381609eb5ec15c299563681ebd6f
DEFAULT BRANCH: main
Ran 25 Mar 2026 03:12PM UTC
Jobs 1
Files 928
Run time 3min
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

25 Mar 2026 02:42PM UTC coverage: 87.188% (+0.07%) from 87.114%
23546949171

push

github

web-flow
Use nalgebra::Matrix4 as output for instructions_to_matrix (#15871)

* Use nalgebra::Matrix4 as output for instructions_to_matrix

This commit switches the return type of
convert_2q_block_matrix::instructions_to_matrix() to return a nalgebra
Matrix4 rather than a dynamicly allocated ndarray Array2. The function
explicitly returns a 4x4 Complex64 matrix. Using an nalgebra fixed size
array is stack allocated and we avoid needing a dynamic allocation. This
should also speedup matrix multiplication since nalgebra can leverage
simd better (either directly or implicitly via the compiler) because it
knows the fixed operations needed. We were already setup towards doing
since #13649 which moved to using nalgebra internally for the 1q
component, but it didn't update the whole path in that PR to use an
nalgebra array for everything.

Ideally we'd be using nalgebra data types throughout the two qubit
decomposers too. We should still use faer for the more involved linear
algebra operations in the module but we should be using Matrix4 and
Matrix2 for fixed sized matrices where we know the size of the matrices
in that module and generate faer MatRefs using
qiskit_synthesis::linalg::nalgebra_to_faer() to do linear algebra with
the matrix. This PR is an incremental step towards doing that.

* Update safety comment

73 of 98 new or added lines in 4 files covered. (74.49%)

14 existing lines in 4 files now uncovered.

103620 of 118846 relevant lines covered (87.19%)

997492.11 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
92.46
-0.43% crates/transpiler/src/passes/consolidate_blocks.rs
8
91.4
-1.46% crates/quantum_info/src/convert_2q_block_matrix.rs
15
92.3
-0.76% crates/synthesis/src/qsd.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
86.99
0.0% crates/circuit/src/parameter/parameter_expression.rs
2
73.81
-0.08% crates/circuit/src/parameter/symbol_expr.rs
5
91.52
-0.77% crates/qasm2/src/lex.rs
6
97.63
0.47% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 23546949171.1 25 Mar 2026 03:12PM UTC 928
87.19
GitHub Action Run
Source Files on build 23546949171
  • Tree
  • List 928
  • Changed 10
  • Source Changed 4
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23546949171
  • 3e803260 on github
  • Prev Build on gh-readonly-queue/main/pr-14908-6fafd8e7deb58d14c2d35c5103fec9b88ea19ca6 (#23541950809)
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