compress
Method of RealMPS.
Overloads
| Name | Description |
|---|---|
compress() -> void | Compress the Matrix Product State (MPS) using the default truncation options. Uses the truncation tolerance and maximum bond dimension previously set via set_truncation_tol() and set_max_bond() with Real values. |
compress(real tol) -> void | Compress the Matrix Product State (MPS) by truncating the bond dimensions based on truncation options. Reduces the bond dimension according to the specified error measure and tolerance with Real values. |
compress() -> void
Compress the Matrix Product State (MPS) using the default truncation options. Uses the truncation tolerance and maximum bond dimension previously set via set_truncation_tol() and set_max_bond() with Real values.
compress(real tol) -> void
Compress the Matrix Product State (MPS) by truncating the bond dimensions based on truncation options. Reduces the bond dimension according to the specified error measure and tolerance with Real values.
Parameters
- tol: Error tolerance of the lossy compression process. Worst possible overall error is approximately N_sites*tol.