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: Update quartz circuit decoder #58

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Conversation

aborgna-q
Copy link
Collaborator

@aborgna-q aborgna-q commented Aug 29, 2023

Simplify the quartz decoder code and drop commented-out blocks.
This is mostly a cleanup PR, inspired by Luca's version in https://github.com/CQCL-DEV/tket2/blob/main/src/passes/taso/qtz_circuit.rs.

We now track the map from quartz qubit/parameter identifiers to circuit units explicitly in a hashmap, so any reordering of units in the encoded quartz circuit is correctly registered.

drive-by: Fix an error in extensions::json_op_signature due to an update in the hugr dependency.

It now tracks the any output renaming from the quartz definition
@aborgna-q aborgna-q requested a review from ss2165 August 29, 2023 15:06
Copy link
Member

@ss2165 ss2165 left a comment

Choose a reason for hiding this comment

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

👍

@aborgna-q aborgna-q merged commit c6b01ed into main Aug 30, 2023
5 checks passed
@aborgna-q aborgna-q deleted the feat/quartz-decoder-update branch August 30, 2023 08:12
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