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

Apply transform program to diagonalizing_gates in specs #6290

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lillian542
Copy link
Contributor

@lillian542 lillian542 commented Sep 20, 2024

Context:
If the diagonalizing gates of a circuit contain unsupported gates, the decomposition isn't applied before deciding how many gates there are

Description of the Change:
We take the diagonalizing gates and apply the preprocess transform program (at the level specs was called with) on the gates before counting them for the num_diagonalizing_gates spec.

Benefits:
The num_diagonalizing_gates spec respects the level kwarg instead of always just returning the answer for the unprocessed version of the tape.

[sc-64695]

@lillian542 lillian542 changed the title Apply preprocess to diagonalizing_gates in specs Apply transform program to diagonalizing_gates in specs Sep 20, 2024
Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant