German
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.decompose

QuantumCircuit.decompose(gates_to_decompose=None, reps=1)[Quellcode]

Call a decomposition pass on this circuit, to decompose one level (shallow decompose).

Parameter
  • 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, reps=2 equals calling circuit.decompose().decompose(). can decompose specific gates specific time

Rückgabe

a circuit one level decomposed

Rückgabetyp

QuantumCircuit