German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.result.Result.get_unitary

Result.get_unitary(experiment=None, decimals=None)[Quellcode]

Get the final unitary of an experiment.

Parameter
  • 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 unitary. If None, does not round.

Rückgabe

list of 2^num_qubits x 2^num_qubits complex

amplitudes.

Rückgabetyp

list[list[complex]]

Verursacht

QiskitError – if there is no unitary for the experiment.