Korean
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Statevector.probabilities_dict

Statevector.probabilities_dict(qargs=None, decimals=None)

Return the subsystem measurement probability dictionary.

Measurement probabilities are with respect to measurement in the computation (diagonal) basis.

This dictionary representation uses a Ket-like notation where the dictionary keys are qudit strings for the subsystem basis vectors. If any subsystem has a dimension greater than 10 comma delimiters are inserted between integers so that subsystems can be distinguished.

매개변수
  • qargs (None or list) – subsystems to return probabilities for, if None return for all subsystems (Default: None).

  • decimals (None or int) – the number of decimal places to round values. If None no rounding is done (Default: None).

반환

The measurement probabilities in dict (ket) form.

반환 형식

dict