User guide
a_mps.py
b_model.py
c_tebd.py
d_dmrg.py
tfi_exact.py
a_np_conserved.py
b_mps.py
e_tdvp.py
z_exact_diag.py
xxz_corr_length.py
central_charge_ising.py
mpo_exponential_decay.py
Reference
full name: tenpy.tools.misc.zero_if_close
parent module: tenpy.tools.misc
tenpy.tools.misc
type: function
tenpy.tools.misc.
zero_if_close
set real and/or imaginary part to 0 if their absolute value is smaller than tol.
a (ndarray) – numpy array to be rounded
tol (float) – the threashold which values to consider as ‘0’.