Skip to content
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

Only use rust two qubit weyl coordinates functions #11982

Closed

Conversation

mtreinish
Copy link
Member

Summary

This commit is a follow up to #11019 that uses the rust implementation of computing the weyl coordinates for a unitary and the transform_to_magic_basis functions everywhere. Previously they were only used internally by the num_basis_gates() rust function to estimate the number of basis gates needed for a decomposition of a given unitary. This will likely be superseded by #11946 when that is working, but this is mainly an incremental step working towards finishing #11946 that proves the internal rust functions work in the larger decomposer code to isolate the source of failures in #11946.

Details and comments

This commit is a follow up to Qiskit#11019 that uses the rust implementation
of computing the weyl coordinates for a unitary and the
transform_to_magic_basis functions everywhere. Previously they were only
used internally by the num_basis_gates() rust function to estimate the
number of basis gates needed for a decomposition of a given unitary.
This will likely be superseded by Qiskit#11946 when that is working, but this
is mainly an incremental step working towards finishin Qiskit#11946 that
proves the internal rust functions work in the larger decomposer code to
isolate the source of failures in Qiskit#11946.
@mtreinish mtreinish added performance Changelog: None Do not include in changelog synthesis Rust This PR or issue is related to Rust code in the repository labels Mar 11, 2024
@mtreinish mtreinish added this to the 1.1.0 milestone Mar 11, 2024
@mtreinish mtreinish requested a review from jlapeyre March 11, 2024 04:56
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Eric-Arellano
  • @Qiskit/terra-core
  • @kevinhartman
  • @levbishop
  • @mtreinish

@coveralls
Copy link

Pull Request Test Coverage Report for Build 8227852660

Details

  • 31 of 31 (100.0%) changed or added relevant lines in 4 files are covered.
  • 17 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.01%) to 89.305%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 5 91.69%
crates/qasm2/src/parse.rs 12 97.15%
Totals Coverage Status
Change from base Build 8190588005: -0.01%
Covered Lines: 59126
Relevant Lines: 66207

💛 - Coveralls

@mtreinish mtreinish closed this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog performance Rust This PR or issue is related to Rust code in the repository synthesis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants