deltakit.circuit.gates.CZSWAP#
- class deltakit.circuit.gates.CZSWAP(control: UT | T, target: VT | T, *, tag: str | None = None)#
Bases:
SymmetricTwoQubitGate,ControlledGate[Qubit[T],Qubit[T]]A combination CZ-and-SWAP gate. This gate is kak-equivalent to the ISWAP gate. Equivalent to H on the target qubit, followed by CNOT from target to control, CNOT from control to target, and finally H on the control qubit.
Notes
Stabilizer Generators:X_ -> ZXZ_ -> _Z_X -> XZ_Z -> Z_Unitary Matrix:\[\begin{split}\begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & -1 \end{pmatrix}\end{split}\]
Methods#
Yield an class instance for each pair in a flattened sequence of data. |
|
Get the stim gate targets which define this operation. |
|
Transform this gates's qubits according to the id mapping. |