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

use the "ground" operation in PyZX to handle hybrid quantum-classical circuits #18

Open
dlyongemallo opened this issue Dec 11, 2023 · 1 comment

Comments

@dlyongemallo
Copy link
Owner

Right now, the transpiler separates operations natively supported in PyZX from those which aren't, optimises the subset which is supported, and then splices everything back together. In particular, this is a common pattern: circuit = [A, measure, B, conditional subcircuit], where only A and B are optimised.

It might be possible to handle the measure and conditional subcircuit parts using the "ground" operation in PyZX.

See this paper for details: https://arxiv.org/abs/2109.06071

@dlyongemallo
Copy link
Owner Author

This is blocked by pyzx not being able to convert "ground"s into measurements and classically-conditioned gates when extracting circuits.

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

No branches or pull requests

1 participant