qiskit.circuit.QuantumCircuit.from_instructions¶
- static QuantumCircuit.from_instructions(instructions, *, qubits=(), clbits=(), name=None, global_phase=0, metadata=None)[source]¶
Construct a circuit from an iterable of CircuitInstructions.
- Parameters
instructions – The instructions to add to the circuit.
qubits – Any qubits to add to the circuit. This argument can be used, for example, to enforce a particular ordering of qubits.
clbits – Any classical bits to add to the circuit. This argument can be used, for example, to enforce a particular ordering of classical bits.
name – The name of the circuit.
global_phase – The global phase of the circuit in radians.
metadata – Arbitrary key value metadata to associate with the circuit.
- Returns
The quantum circuit.