qiskit.result.Result.get_statevector¶
- Result.get_statevector(experiment=None, decimals=None)[source]¶
Get the final statevector of an experiment.
- প্যারামিটার
experiment (str or QuantumCircuit or Schedule or int or None) -- the index of the experiment, as specified by
data()
.decimals (int) -- the number of decimals in the statevector. If None, does not round.
- রিটার্নস
list of 2^num_qubits complex amplitudes.
- রিটার্ন টাইপ
list[complex]
- রেইজেস
QiskitError -- if there is no statevector for the experiment.