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

Removed redundant gates and updated gate tests #243

Merged

Conversation

imagoulas
Copy link
Contributor

Description

The redundant gates included: Rzy, rU1, and rU2. The purpose of the Rzy gate was to rotate between the Z and Y computational bases. However, the same can be accomplished with the Rx(pi/2) gate. The rU1 gate was equivalent to Ry(2 * theta). The rU2 gate was equal to rU1 \otimes I.

The redundant gates have been removed and the same is true for their corresponding test cases.

Another possible candidate is the A gate (Givens rotation), which can be implemented using standard Ry and CNOT gates. This needs some further consideration.

All tests pass successfully.

User Notes

  • Features added
  • Changes to compilation (if any)

Checklist

  • [x ] Added/updated tests of new features
  • Removed comments in input files
  • Documented source code
  • Checked for redundant headers/imports
  • Checked for consistency in the formatting of the output file
  • [x ] Ready to go!

@imagoulas imagoulas requested a review from muhan-zhang May 3, 2024 19:28
@muhan-zhang muhan-zhang merged commit c569e90 into evangelistalab:master May 3, 2024
1 check passed
@imagoulas imagoulas deleted the remove_redundant_gates branch May 14, 2024 17:50
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