![]() |
Implement a C-Phase gate using two sqrt ISWAP gates and single-qubit
cirq_google.optimizers.convert_to_sqrt_iswap.cphase_to_sqrt_iswap(
a, b, turns
)
operations. The circuit is equivalent to cirq.CZPowGate(exponent=turns).
Output unitary:
[1 0 0 0], [0 1 0 0], [0 0 1 0], [0 0 0 e^{i turns pi}].
Args | |
---|---|
a
|
the first qubit |
b
|
the second qubit |
turns
|
Exponent specifying the evolution time in number of rotations. |