GateType

class GateType(name, num_qubits, num_params, fixed_angles=None)

Describe a native gate family.

Variables:
  • name – Name used in quantum circuits for this gate family.

  • num_qubits – Number of qubits associated with the gate family.

  • num_params – Number of continuous parameters the gate takes (e.g. 0 for a fixed gate like sx, 1 for rz, 2 for r and crot). Virtual/parameterized gates report their free-parameter count; fixed hardware gates report 0.

  • fixed_angles – The gate’s (theta, phi)-shaped angles when num_params == 0 (a fixed, zero-parameter gate whose physical rotation is still a concrete angle – e.g. sx and crotxpi2 are both (pi/2, 0.0) in the same convention r/crot’s free (theta, phi) params use). None for gates with free parameters, where the angles come from the circuit instruction instead.