
Cross-Resonance Gates: How a Microwave Drive Creates Entanglement
A drive on one coupled transmon at its partner’s frequency creates a conditional target rotation. See how echoed cross-resonance becomes an ECR gate in Qiskit.
Cross-resonance is one way fixed-frequency transmon processors create an entangling two-qubit operation. Instead of tuning one qubit into resonance with another, the hardware drives a control qubit with a microwave tone set to the frequency of its coupled partner. The interaction makes the target rotation depend on the control state.
What the ZX interaction means
In an idealized description, the useful part of the interaction is often written Z_control X_target. The Z operator has opposite eigenvalues for control states |0> and |1>. So the target rotates around its X axis in opposite directions depending on the control state. When the qubits are in superpositions, that conditional rotation can create entanglement.
A real driven interaction also contains unwanted terms. An echoed cross-resonance sequence uses echo pulses so some contributions other than the desired ZX term cancel. The echo helps, but it does not remove every error. Calibration and device characterization remain important.
Check an ECR gate in Qiskit
Qiskit represents the echoed cross-resonance entangler as an ECR gate. It is maximally entangling and equivalent to a CNOT up to single-qubit pre-rotations, but its matrix is not simply the same as CX. In this ideal statevector example, qubit 0 starts in |+>, qubit 1 starts in |0>, and the ECR gate creates a maximally entangled pair.
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector, partial_trace, entropy
qc = QuantumCircuit(2)
qc.h(0) # prepare the control in |+>
qc.ecr(0, 1) # apply the echoed cross-resonance entangler
state = Statevector.from_instruction(qc)
rho_q0 = partial_trace(state, [1]) # trace out qubit 1
print(round(entropy(rho_q0, base=2), 6))
Expected output:
1.0
The reduced state of qubit 0 has one bit of von Neumann entropy, the maximum for a qubit. Because the full two-qubit state is pure, that entropy confirms the pair is maximally entangled. Qiskit uses little-endian qubit ordering, and partial_trace(state, [1]) discards qubit 1, leaving qubit 0.
This circuit describes an abstract ECR operation, not the microwave pulse itself. A backend target records which instructions are calibrated, and the transpiler can decompose a CX into ECR and single-qubit gates when that matches the device. The exact pulse and error rates are hardware details.