Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.from_instructions

static QuantumCircuit.from_instructions(instructions, *, qubits=(), clbits=(), name=None, global_phase=0, metadata=None)[소스]

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.

반환 형식

QuantumCircuit