cirq.StepResult.dirac_notation

StepResult.dirac_notation(decimals: int = 2) → str[source]

Returns the wavefunction as a string in Dirac notation.

Parameters:decimals – How many decimals to include in the pretty print.
Returns:A pretty string consisting of a sum of computational basis kets and non-zero floats of the specified accuracy.