- QuantumCircuit.decompose(gates_to_decompose=None, reps=1)[source]¶
Call a decomposition pass on this circuit, to decompose one level (shallow decompose).
gates_to_decompose (str or list(str)) – optional subset of gates to decompose. Defaults to all gates in circuit.
reps (int) – Optional number of times the circuit should be decomposed. For instance,
circuit.decompose().decompose(). can decompose specific gates specific time
a circuit one level decomposed
- Return type