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

Add PhysicalZTag #2753

Merged
merged 4 commits into from
Feb 12, 2020
Merged

Add PhysicalZTag #2753

merged 4 commits into from
Feb 12, 2020

Conversation

dstrain115
Copy link
Collaborator

  • Simple class in cirq.google.ops that can denote physical Z gates.
  • Just includes the class definition so far, no functionality.

- Simple class in cirq.google.ops that can denote physical Z gates.
- Just includes the class definition so far, no functionality.
@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Feb 10, 2020
Copy link
Contributor

@maffoo maffoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments, then LGTM.

class PhysicalZTag:
"""Class to add as a tag onto an Operation to denote a Physical Z operation.

By default, all Z rotations on Google devices are considered to be virtual.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: 4-space indent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

tracking mechanisms, essentially commuting it forwards through the circuit
until it hits a non-commuting operation (Such as a sqrt(iSwap)).

By attaching this to a Z rotation operation, this class will denote to the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "When applied to a Z rotation operation, this tag indicates to the hardware that..."

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@dstrain115 dstrain115 merged commit 89653aa into quantumlib:master Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants