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 a pass to remove tuples from circuits #380

Closed
Tracked by #377
aborgna-q opened this issue Jun 4, 2024 · 0 comments · Fixed by #406
Closed
Tracked by #377

Add a pass to remove tuples from circuits #380

aborgna-q opened this issue Jun 4, 2024 · 0 comments · Fixed by #406
Assignees

Comments

@aborgna-q
Copy link
Collaborator

aborgna-q commented Jun 4, 2024

Try to flatten every tuple into individual bits/qubits, so that it can be converted to a pytket circuit.

This may be implemented on the hugr lib instead of here.

@aborgna-q aborgna-q changed the title Remove tuple packing/unpackings in the circuit. Add a pass to remove tuples from circuits Jun 4, 2024
github-merge-queue bot pushed a commit that referenced this issue Jun 17, 2024
Adds a pass for removing tuple packs immediately followed by tuple
unpacks.

Currently this only removes one-to-one connections.
The code should work for one-to-many, but there's a bug in hugr's
`SimpleRewrite` that prevents us from having replacements where multiple
outputs are connected to a single input.
See CQCL/hugr#1190.

Closes #380
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 a pull request may close this issue.

1 participant