French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.to_instruction

QuantumCircuit.to_instruction(parameter_map=None, label=None)[source]

Create an Instruction out of this circuit.

Paramètres
  • parameter_map (dict) – For parameterized circuits, a mapping from parameters in the circuit to parameters to be used in the instruction. If None, existing circuit parameters will also parameterize the instruction.

  • label (str) – Optional gate label.

Renvoie

a composite instruction encapsulating this circuit (can be decomposed back)

Type renvoyé

qiskit.circuit.Instruction