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.
0for a fixed gate likesx,1forrz,2forrandcrot). Virtual/parameterized gates report their free-parameter count; fixed hardware gates report0.fixed_angles – The gate’s
(theta, phi)-shaped angles whennum_params == 0(a fixed, zero-parameter gate whose physical rotation is still a concrete angle – e.g.sxandcrotxpi2are both(pi/2, 0.0)in the same conventionr/crot’s free(theta, phi)params use).Nonefor gates with free parameters, where the angles come from the circuit instruction instead.