Spanish
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.to_gate

QuantumCircuit.to_gate(parameter_map=None, label=None)[fuente]

Create a Gate out of this circuit.

Parámetros
  • parameter_map (dict) – For parameterized circuits, a mapping from parameters in the circuit to parameters to be used in the gate. If None, existing circuit parameters will also parameterize the gate.

  • label (str) – Optional gate label.

Devuelve

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

Tipo del valor devuelto

Gate