pytenet.bond_ops

Functions concerning virtual bonds.

Functions

retained_bond_indices(s, tol)

Indices of retained singular values based on the specified tolerance.

split_block_sparse_matrix_svd(a, q0, q1, tol)

Split a matrix by singular value decomposition, taking block sparsity structure dictated by quantum numbers into account, and truncate small singular values based on the specified tolerance.

von_neumann_entropy(sigma)

Compute the von Neumann entropy of the singular values sigma.