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.
- প্যারামিটার
instructions (Iterable[CircuitInstruction | tuple[qiskit.circuit.Instruction] | tuple[qiskit.circuit.Instruction, Iterable[Qubit]] | tuple[qiskit.circuit.Instruction, Iterable[Qubit], Iterable[Clbit]]]) -- The instructions to add to the circuit.
qubits (Iterable[Qubit]) -- Any qubits to add to the circuit. This argument can be used, for example, to enforce a particular ordering of qubits.
clbits (Iterable[Clbit]) -- Any classical bits to add to the circuit. This argument can be used, for example, to enforce a particular ordering of classical bits.
name (str | None) -- The name of the circuit.
global_phase (ParameterValueType) -- The global phase of the circuit in radians.
metadata (dict | None) -- Arbitrary key value metadata to associate with the circuit.
- রিটার্নস
The quantum circuit.
- রিটার্ন টাইপ