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

feat(phirgen): add support for Sleep/Idle mop #141

Merged
merged 4 commits into from
Mar 6, 2024
Merged

feat(phirgen): add support for Sleep/Idle mop #141

merged 4 commits into from
Mar 6, 2024

Conversation

qartik
Copy link
Member

@qartik qartik commented Mar 4, 2024

Description

Add support for QASM's sleep operation that gets converted by pytket into a barrier with op.data carrying the sleep information. We convert it into the existing PHIR "Idle" "mop".

Also update several dependencies.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works

Asa-Kosto-QTM
Asa-Kosto-QTM previously approved these changes Mar 4, 2024
@qartik qartik requested a review from cqc-alec March 5, 2024 12:23
cqc-alec
cqc-alec previously approved these changes Mar 5, 2024
Asa-Kosto-QTM
Asa-Kosto-QTM previously approved these changes Mar 5, 2024
@qartik qartik requested a review from qciaran March 5, 2024 17:52
@@ -0,0 +1,17 @@
OPENQASM 2.0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good minimal test. I'd like to see an additional program use multiple sleeps on different qubits just as an extra sanity check in the test suite.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, added!

peter-campora
peter-campora previously approved these changes Mar 5, 2024
Copy link
Collaborator

@peter-campora peter-campora left a comment

Choose a reason for hiding this comment

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

LGTM Overall. Added one comment about possibly adding an additional test case.

qciaran
qciaran previously approved these changes Mar 5, 2024
Copy link
Collaborator

@qciaran qciaran left a comment

Choose a reason for hiding this comment

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

LGTM

pytket/phir/phirgen.py Outdated Show resolved Hide resolved
@qartik qartik merged commit 899d8ef into main Mar 6, 2024
6 checks passed
@qartik qartik deleted the sleep branch March 6, 2024 16:26
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.

5 participants