quantumlib / Cirq

A python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.19k stars 995 forks source link

CZSWAP and CXSWAP gate #6424

Open AlMrvn opened 5 months ago

AlMrvn commented 5 months ago

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.

anonymousr007 commented 1 month ago

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

NoureldinYosri commented 1 month ago

@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 commented 1 month ago

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

khnikhil commented 1 month ago

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