FSimGate(theta: float, phi: float)¶
Fermionic simulation gate family.Contains all two qubit interactions that preserve excitations, up tosingle-qubit rotations and global phase.
The unitary matrix of this gate is:
[[1, 0, 0, 0], [0, a, b, 0], [0, b, a, 0], [0, 0, 0, c]]
a = cos(theta) b = -i·sin(theta) c = exp(-i·phi)Note the difference in sign conventions between FSimGate and theISWAP and CZPowGate:
FSimGate(θ, φ) = ISWAP**(-2θ/π) CZPowGate(exponent=-φ/π)
__init__(theta: float, phi: float)¶
theta – Swap angle on the
|10⟩subspace, in radians. Determined by the strength and duration of the XX+YY interaction. Note: uses opposite sign convention to the iSWAP gate. Maximum strength (full iswap) is at pi/2.
phi – Controlled phase angle, in radians. Determines how much the
|11⟩state is phased. Note: uses opposite sign convention to the CZPowGate. Maximum strength (full cz) is at pi/2.
controlled([num_controls, control_values, …])Returns a controlled version of this gate. If no arguments are
The number of qubits this gate acts on.
Returns an application of this gate to the given qubits.
Returns a key that differs between non-interchangeable qubits.
Checks if this gate can be applied to the given qubits.