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 support for CopyBits op #67

Merged
merged 6 commits into from
Dec 14, 2023
Merged

Add support for CopyBits op #67

merged 6 commits into from
Dec 14, 2023

Conversation

qartik
Copy link
Member

@qartik qartik commented Dec 14, 2023

Fixes #61

pytket/phir/phirgen.py Outdated Show resolved Hide resolved
pytket/phir/phirgen.py Show resolved Hide resolved
@qartik
Copy link
Member Author

qartik commented Dec 14, 2023

The test breakage seems unrelated to this set of changes, @Asa-Kosto-QTM is looking into that.

neal-erickson
neal-erickson previously approved these changes Dec 14, 2023
cqc-alec
cqc-alec previously approved these changes Dec 14, 2023
# sort to ensure deterministic order of qbuits/cbits in output
# lowest -> highest
fmt_measure["args"].sort()
fmt_measure["returns"].sort()
Copy link
Member Author

Choose a reason for hiding this comment

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

@Asa-Kosto-QTM is this always going to be correct?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am confident that it will. The args/bits are always in this format ['q' or 'c', number] and it sorts by the number. As long as that format doesn't change it should work

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, removing this commit from this PR just to keep things separated.

@qartik
Copy link
Member Author

qartik commented Dec 14, 2023

I will wait to merge this until the tests are fixed in another PR.

@qartik qartik merged commit 5cd46aa into main Dec 14, 2023
2 checks passed
@qartik qartik deleted the copybits branch December 14, 2023 21:19
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.

IndexError adding command with no qubits
5 participants