qiskit.circuit.QuantumCircuit.to_gate¶
- QuantumCircuit.to_gate(parameter_map=None, label=None)[ソース]¶
Create a Gate out of this circuit.
- パラメータ
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.
- 戻り値
a composite gate encapsulating this circuit (can be decomposed back)
- 戻り値の型