# Wavefunction.pretty_print¶

Wavefunction.pretty_print(decimal_digits=2)[source]

Returns a string repr of the wavefunction, ignoring all outcomes with approximately zero amplitude (up to a certain number of decimal digits) and rounding the amplitudes to decimal_digits.

Parameters: decimal_digits (int) – The number of digits to truncate to. str A string representation of the wavefunction.