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

extract_circuit does not turn grounds into measurements and classically-conditioned gates #211

Open
dlyongemallo opened this issue Apr 8, 2024 · 3 comments

Comments

@dlyongemallo
Copy link
Contributor

Given a graph with grounds used to represent measurements and classically-conditioned gates, I would like to convert it into a (mixed quantum-classical) circuit preserving the semantics of the grounds. However, extract_circuit does not appear to handle grounds. Is there any way to convert such a graph into a circuit?

This is blocking dlyongemallo/qiskit-zx-transpiler#18.

@jvdwetering
Copy link
Collaborator

This is not trivial to implement I think. @ABorgna @aborgna-q does this exist in your fork?

@ABorgna
Copy link
Contributor

ABorgna commented Apr 22, 2024

I didn't implement it, but It shouldn't be too hard to do so. I'll make a PR later.

@ABorgna
Copy link
Contributor

ABorgna commented Apr 22, 2024

Update: I did implement it before, but it's part of a bunch of changes done on top of an old pyzx version. It may take a bit longer to port :)

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

3 participants