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

CZSWAP and CXSWAP gate #6424

Open
AlMrvn opened this issue Jan 24, 2024 · 4 comments · May be fixed by #6620
Open

CZSWAP and CXSWAP gate #6424

AlMrvn opened this issue Jan 24, 2024 · 4 comments · May be fixed by #6620
Assignees
Labels
kind/feature-request Describes new functionality triage/accepted there is consensus amongst maintainers that this is a real bug or a reasonable feature to add unitaryhack

Comments

@AlMrvn
Copy link

AlMrvn commented Jan 24, 2024

Is your feature request related to a use case or problem? Please describe.
stim allow the use of gates like CZSWAP and CXSWAP but cirq doesn't have these gates.

stim define a stimcirq gate currently with all the parameters: stimcirq.CZSwapGate()

Describe the solution you'd like
I would like for cirq to have a CZSWAP gate and a CXSWAP gate for easy moving back and forth between stim and cirq.

[optional] Describe alternatives/workarounds you've considered
Using the FSIM gate is a possibility. However since it's a parametrized gate, it's not always practical to use.

@AlMrvn AlMrvn added the kind/feature-request Describes new functionality label Jan 24, 2024
@NoureldinYosri NoureldinYosri added the triage/discuss Needs decision / discussion, bring these up during Cirq Cynque label Jan 24, 2024
@verult verult added triage/accepted there is consensus amongst maintainers that this is a real bug or a reasonable feature to add and removed triage/discuss Needs decision / discussion, bring these up during Cirq Cynque labels Feb 14, 2024
@NoureldinYosri NoureldinYosri changed the title CZSWAP and CZSWAP gate CZSWAP and CXSWAP gate Feb 14, 2024
@anonymousr007
Copy link
Contributor

anonymousr007 commented May 29, 2024

Hi @AlMrvn, @NoureldinYosri and @verult, I am interested in this issue. Please assign me this issue.

@NoureldinYosri
Copy link
Collaborator

NoureldinYosri commented May 29, 2024

@anonymousr007 thanks for offering to help but this issue is dedicated to an event, please take a look at other open issues. I will add a tag to designate this and similar issues.


unless you are participating in the event https://unitaryhack.dev/ in which case I will assign it to you

@anonymousr007
Copy link
Contributor

I know it, I was already registered in Unitary Hack.

@khnikhil khnikhil linked a pull request May 29, 2024 that will close this issue
@khnikhil
Copy link

@NoureldinYosri I've submitted a PR that implements the CXSWAP and CZSWAP gates for the Unitary Hack challenge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request Describes new functionality triage/accepted there is consensus amongst maintainers that this is a real bug or a reasonable feature to add unitaryhack
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants