cirq.google.XmonStepResult.dirac_notation

XmonStepResult.dirac_notation(decimals: int = 2) → str

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.