Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Statevector.from_instruction

classmethod Statevector.from_instruction(instruction)[source]

Return the output statevector of an instruction.

The statevector is initialized in the state \(|{0,\ldots,0}\rangle\) of the same number of qubits as the input instruction or circuit, evolved by the input instruction, and the output statevector returned.

প্যারামিটার

instruction (qiskit.circuit.Instruction or QuantumCircuit) -- instruction or circuit

রিটার্নস

The final statevector.

রিটার্ন টাইপ

Statevector

রেইজেস

QiskitError -- if the instruction contains invalid instructions for the statevector simulation.