Tessera: Quantum Circuit Transpiler

Gate Reference

This page lists every gate Tessera accepts as input, its parameters, and how it is handled on each backend. A gate marked as basis on a given backend passes through unchanged. A gate marked with a decomposition is replaced with that sequence during BasisTranslationPass. Measurements and barriers are always passed through unchanged regardless of backend.

Single-Qubit Gates: No Parameters

GateDescriptionIBMIonQRigetti
hHadamardRz(π/2) Sx Rz(π/2)Rz(π/2) Rx(π/2) Rz(π/2)Rz(π/2) Rx(π/2) Rz(π/2)
xPauli-X (bit flip)basisRx(π)Rx(π)
yPauli-YRz(π) XRy(π)Rz(π) Rx(π)
zPauli-ZRz(π)Rz(π)Rz(π)
sS gate (√Z)Rz(π/2)Rz(π/2)Rz(π/2)
sdgS† gateRz(-π/2)Rz(-π/2)Rz(-π/2)
tT gate (∜Z)Rz(π/4)Rz(π/4)Rz(π/4)
tdgT† gateRz(-π/4)Rz(-π/4)Rz(-π/4)
sx√X gatebasisRx(π/2)Rx(π/2)

Single-Qubit Gates: With Parameters

GateParametersDescriptionIBMIonQRigetti
rx(θ)θ: rotation angleX-axis rotationRz(-π/2) Sx Rz(θ-π/2) Sx Rz(π/2)basisbasis
ry(θ)θ: rotation angleY-axis rotationU(θ, 0, 0)basisRz(π/2) Rx(θ) Rz(-π/2)
rz(θ)θ: rotation angleZ-axis rotationbasisbasisbasis
p(θ)θ: phase anglePhase gateRz(θ)Rz(θ)Rz(θ)
u(θ,φ,λ)θ, φ, λ: Euler anglesGeneral single-qubit unitarybasisRz(φ) Ry(θ) Rz(λ)Rz(φ+π/2) Rx(θ) Rz(λ-π/2)

Two-Qubit Gates: No Parameters

GateDescriptionIBMIonQRigetti
cx / cnotControlled-XbasisbasisH(q1) CZ(q0,q1) H(q1)
czControlled-ZH(q1) CX(q0,q1) H(q1)H(q1) CX(q0,q1) H(q1)basis
cyControlled-YRz(-π/2,q1) CX Rz(π/2,q1)Rz(-π/2,q1) CX Rz(π/2,q1)Rx(π/2,q1) Rz(π/2,q1) CZ Rz(π/2,q1) Rx(π/2,q1) Rz(π,q1)
swapSWAPCX CX(rev) CXCX CX(rev) CX3× inlined CX (→ CZ)
Note
Both cx and cnot are accepted as input and treated identically. cnot is normalized to cx during BasisTranslationPass.

Two-Qubit Gates: With Parameters

GateParametersDescriptionIBMIonQRigetti
cp(θ)θ: phase angleControlled phaseRz(θ/2,q0) CX Rz(-θ/2,q1) CX Rz(θ/2,q1)Rz(θ/2,q0) CX Rz(-θ/2,q1) CX Rz(θ/2,q1)Same pattern with CX inlined as H·CZ·H

Three-Qubit Gates

GateDescriptionIBMIonQRigetti
ccxToffoli (controlled-controlled-X)19 instructions (4 CX)19 instructions (4 CX, uses Rx instead of Sx)55 instructions (4 CX each inlined as H·CZ·H)
Note
ccx must be decomposed by BasisTranslationPass before BasicSwapRouter runs. The router raises a ValueError if it encounters any gate with more than 2 qubits.

Special Instructions

InstructionDescription
measureMeasures a qubit into a classical bit. Always passed through unchanged by all passes.
barrierStructural hint that prevents gate reordering. Passed through unchanged until RemoveBarriersPass strips it.