Supported gates

Overview

This page lists the gate and operation methods available on QuantumRingsLib.QuantumCircuit for programmatic circuit construction.

For how to build and run circuits, see Circuits. For importing circuits from OpenQASM 2.0, see QASM import.

This page does not describe backend-specific behavior. It is a reference list of operations exposed by QuantumCircuit.

QuantumCircuit gate and operation methods

Single-qubit gates

  • h()

  • x()

  • y()

  • z()

  • i() / id()

  • s()

  • t()

  • tdg()

  • sx()

  • sxdg()

Single-qubit parameterized gates

  • p()

  • r()

  • rv()

  • rx()

  • ry()

  • rz()

  • u()

  • u1()

  • u2()

  • u3()

  • delay()

Two-qubit gates

  • cx() / cnot()

  • cy()

  • cz()

  • ch()

  • swap()

  • iswap()

  • dcx()

  • ecr()

Two-qubit controlled / parameterized gates

  • cp()

  • crx()

  • cry()

  • crz()

  • cs()

  • csdg()

  • csx()

  • cu()

  • cu1()

  • cu3()

  • rxx()

  • ryy()

  • rzx()

  • rzz()

Multi-qubit / multi-controlled gates

  • ccx() / toffoli()

  • ccz()

  • cswap() / fredkin()

  • rccx()

  • mcp()

  • mcrx()

  • mcry()

  • mcrz()

  • mct()

  • mcx()

  • ms()

  • gms()

  • rcccx()

  • rc3x()

  • c3sqrtx()

  • c3x()

  • c4x()

  • pauli()

Measurement and circuit operations

  • measure()

  • measure_all()

  • measure_active()

  • reset()

  • barrier()

See also

Return to Quantum Rings SDK Documentation.