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

Qiskit / qiskit / 16996292033

15 Aug 2025 05:46PM UTC coverage: 88.26% (-0.04%) from 88.297%
16996292033

push

github

web-flow
Decomposer extraction for Rust native `ConsolidateBlocks` (#14776)

* Add: Decomposer extraction for Rust native `ConsolidateBlocks`.
Built on top of #14748.
The following commit adds the ability for the `ConsolidateBlocks` pass to instantiate decomposers and choose a basis gate based on the provided `Target`. In  the case that a `Target` is not provided, it will default to a `TwoBasisDecomposer` with a `CX` gate.

* Chore: Avoid unnecessary collections and remove OnceCell.
- Use CX matrix directly with aview2

* Update crates/transpiler/src/passes/consolidate_blocks.rs

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

* Fix: Make `approximation_degree` optional.

* Fix: Use `StandardGate` comparison instead of string comparisons.

* Fix: Use matrix views

* Fix: Use defined basis gates from `unitary_synthesis`.
- Use already defined `PARAM_SET_BASIS_GATES` and `TWO_QUBIT_BASIS_SET_GATES` and modify the `get_matrix` method to include those as well.
- Make `PARAM_SET_BASIS_GATES` and `TWO_QUBIT_BASIS_SET_GATES` pub.

* Test: Add test case for rust entry point.

* Fix: Add no miri flag to tests

* Fix: Apply code suggestions

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

* Fix: Correct import of macros from `unitary_synthesis`.

* Chore: Simplify test

* FIx: Miri flag

---------

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

92 of 126 new or added lines in 1 file covered. (73.02%)

29 existing lines in 4 files now uncovered.

87988 of 99692 relevant lines covered (88.26%)

510234.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.39
/crates/circuit/src/parameter/parameter_expression.rs


Source Not Available

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