spheres.utils.dirac

spheres.utils.dirac(state, probabilities=False)[source]

Prints a pretty representation of a state in Dirac braket notation.

Parameters
  • state (qt.Qobj) –

  • probabilities (bool) – If True, returns only the probabilities.