Tamil
மொழிகள்
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.decompose

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

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

Parameters
  • 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

Returns

a circuit one level decomposed

Return type

QuantumCircuit