Sign in
← Atlas
Exact & formalGatesTwo-qubit gate

ECR (echoed cross-resonance) gate

The maximally entangling two-qubit gate native to IBM's newer superconducting processors, built from an 'echoed' pair of opposite-sign cross-resonance pulses around a control-qubit X flip, and locally equivalent to CX.

ecrcross resonancehardware nativetwo qubitibm

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.

ECR replaced the plain cross-resonance gate as IBM's native two-qubit entangler because the echo sequence cancels unwanted always-on ZZ and IX crosstalk terms that a single cross-resonance pulse leaves behind, at the cost of needing an extra calibrated X pulse mid-sequence.

Circuit & simulation
P(|10⟩) from |00⟩50%
P(|11⟩) from |00⟩50%
What this takes and returns
Takes2 qubitsWhat joins here

Takes a 2-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 2 qubits can feed it.

16 entries meet this end. Named below.

Returns2 qubitsWhat joins here

Returns a 2-qubit register a next stage can take. This is the end that joins.

11 entries meet this end. Named below.

A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →

How it works

Definition (Qiskit convention)

ECR=12(001i00i11i00i100)\mathrm{ECR} = \frac{1}{\sqrt2}\begin{pmatrix} 0&0&1&i\\0&0&i&1\\1&-i&0&0\\-i&1&0&0 \end{pmatrix}

using Qiskit's ECRGate convention, with qubit 0 as the "control" side of the underlying RZX pulses. This matrix is maximally entangling and locally equivalent to CX\mathrm{CX} (same Weyl-chamber point), but is not identical to it.

Action on basis states

ECR00=12(10i11),ECR10=12(00+i01)\mathrm{ECR}|00\rangle = \tfrac{1}{\sqrt2}(|10\rangle - i|11\rangle), \qquad \mathrm{ECR}|10\rangle = \tfrac{1}{\sqrt2}(|00\rangle + i|01\rangle)

Every computational-basis input is mapped to an equal-weight superposition of two basis states on the other qubit's block, confirming maximal entangling power from a product-state input.

Decomposition

ECR=RZX(π/4)(XI)RZX(π/4)\mathrm{ECR} = \mathrm{RZX}(-\pi/4)\cdot (X\otimes I) \cdot \mathrm{RZX}(\pi/4)

RZX(θ)=eiθ(ZX)/2\mathrm{RZX}(\theta) = e^{-i\theta (Z\otimes X)/2} is itself a native two-qubit rotation driven directly by the cross-resonance microwave tone — it is not decomposed further here, since on IBM hardware it is a calibrated pulse, not a compiled circuit. Multiplying the three 4×44\times4 matrices in circuit order (RZX(π/4), then an X flip on qubit 0, then RZX(-π/4)) reproduces the ECR matrix above exactly, entry by entry.

Key identities

  • ECR\mathrm{ECR} is a Clifford gate per Qiskit's ECRGate documentation, since it is locally equivalent to CX\mathrm{CX}; standard Clifford-simulator and transpiler passes treat it as such.
  • The "echo" structure — RZX(π/4)\mathrm{RZX}(-\pi/4) and RZX(π/4)\mathrm{RZX}(\pi/4) with an intervening XX on the control — is the standard technique (Sheldon et al. 2016) for canceling static ZZZZ and IXIX/IYIY crosstalk terms that a bare cross-resonance pulse would otherwise leave in the effective Hamiltonian.
  • RZX\mathrm{RZX} is not part of OpenQASM 3's core stdgates.inc; it is exposed as a hardware-native gate by IBM's backend dialect, the same status ECR itself has.
  • Because ECR is locally equivalent to CX\mathrm{CX}, any circuit expressed with CX\mathrm{CX} plus single-qubit gates can be retargeted to ECR plus single-qubit gates by a transpiler, which is exactly how Qiskit compiles CX-based circuits for ECR-native IBM backends.
Implementation
Native
ecr.qasm
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
ecr q[0], q[1];
Quantum vs classical

Classical baseline

Use a classical state-vector or matrix simulation at the same width, precision, and measurement objective.

Quantum claim

The quantum record demonstrates a state or operator behavior; it does not make classical simulation or communication costs disappear.

How to compare

Compare fidelity, samples, gate depth, noise, memory, and the cost of preparing and reading the state.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
Procedure for systematically tuning up crosstalk in the cross resonance gate2016 · Sarah Sheldon, Easwar Magesan, Jerry M. Chow, Jay M. Gambetta

Introduces the echoed cross-resonance pulse sequence RZX(π/4)–X–RZX(−π/4) that the ECR gate implements, canceling unwanted interaction terms via the X echo.

arxiv.org/abs/1603.04821
Efficient Z-Gates for Quantum Computing2016 · David C. McKay, Christopher J. Wood, Sarah Sheldon, Jerry M. Chow, Jay M. Gambetta

Establishes the virtual-Z / calibrated-pulse framework that IBM's native two-qubit gates, including the cross-resonance family, are compiled within.

arxiv.org/abs/1612.00858