![]() |
Implement the evolution of the hopping term using two sqrt_iswap gates
cirq_google.optimizers.convert_to_sqrt_iswap.iswap_to_sqrt_iswap(
a, b, turns
)
and single-qubit operations. Output unitary: [1 0 0 0], [0 c is 0], [0 is c 0], [0 0 0 1], where c = cos(t * np.pi / 2) and s = sin(t * np.pi / 2).
Args | |
---|---|
a
|
the first qubit |
b
|
the second qubit |
turns
|
Exponent that specifies the evolution time in number of rotations. |