Skip to content

Decomposer extraction for Rust native ConsolidateBlocks #14776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raynelfss
Copy link
Contributor

Summary

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.

Details and comments

Built on top of #14748. Will rebase after it merges.
Prerequisite for #14751.

@raynelfss raynelfss requested a review from a team as a code owner July 21, 2025 17:06
@qiskit-bot
Copy link
Collaborator

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

@raynelfss raynelfss changed the title Consolidate rust native Decomposer extraction for Rust native ConsolidateBlocks Jul 21, 2025
@raynelfss raynelfss added this to the 2.2.0 milestone Jul 21, 2025
@raynelfss raynelfss added Rust This PR or issue is related to Rust code in the repository mod: transpiler Issues and PRs related to Transpiler labels Jul 21, 2025
@coveralls
Copy link

coveralls commented Jul 21, 2025

Pull Request Test Coverage Report for Build 16524234917

Details

  • 2 of 95 (2.11%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.08%) to 87.668%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/transpiler/src/passes/consolidate_blocks.rs 2 95 2.11%
Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 2 92.78%
Totals Coverage Status
Change from base Build 16508029389: -0.08%
Covered Lines: 81437
Relevant Lines: 92892

💛 - Coveralls

Built on top of Qiskit#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.
@raynelfss raynelfss force-pushed the consolidate-rust-native branch from 6018c44 to cfc4f58 Compare July 25, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod: transpiler Issues and PRs related to Transpiler Rust This PR or issue is related to Rust code in the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants