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

Fix phase gate matrix, test utility #156

Merged
merged 5 commits into from
Apr 3, 2024
Merged

Fix phase gate matrix, test utility #156

merged 5 commits into from
Apr 3, 2024

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Mar 29, 2024

The test utility for comparing simulator functions against matrix applications was not using enough qubits to fully verify the resulting state, and fixing this revealed a bug in the matrix used for testing the mcphase operation. The matrix is also updated such that the enhanced test now passes.

The test utility for comparing simulator functions against matrix applications was not using enough qubits to fully verify the resulting state, and fixing this revealed a bug in the way `mcphase` was used to implement a multicontrolled Ri rotation (the phase was not applied globally). This change updates the tests and fixes `mcphase` to apply to all states instead of just states with a 1 in the computational basis.
@swernli swernli requested review from idavis and billti as code owners March 29, 2024 05:41
@swernli swernli changed the title Fix multicontrolled Ri, tests Fix phase gate matrix, test utility Mar 29, 2024
@swernli swernli enabled auto-merge (squash) April 3, 2024 17:17
@swernli swernli merged commit de1dfe9 into main Apr 3, 2024
15 checks passed
@swernli swernli deleted the swernli/mcri-fix branch April 3, 2024 17:23
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.

2 participants