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 choosing basis in InitAncilla and PostSelect #285

Open
anurudhp opened this issue Feb 13, 2025 · 0 comments
Open

Add support for choosing basis in InitAncilla and PostSelect #285

anurudhp opened this issue Feb 13, 2025 · 0 comments

Comments

@anurudhp
Copy link

Hi! I am currently implementing a lowering from Qualtran to pyzx (quantumlib/Qualtran#1550).

I'm producing a zx.Circuit, and as qualtran natively supports states and effects, it would be very useful to have atomic zx gates that can represent these. I see that InitAncilla and PostSelect are there, but they add a Z spider, i.e. $\ket+$ and $\bra+$ respectively.

Could they be extended with flags to select the basis and basis state (i.e. one of $\ket0, \ket1, \ket+, \ket-$)? Or is there a more direct way to add states and effects?

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