pytenet.mps

Matrix product state (MPS) class and associated functionality.

Functions

mps_add(mps0, mps1[, alpha])

Logical addition of two matrix product states (effectively sum virtual bond dimensions), with the second MPS scaled by "alpha".

mps_local_orthonormalize_left_qr(a, a_next, ...)

Left-orthonormalize the local site tensor a by a QR decomposition, and update the tensor at the next site.

mps_local_orthonormalize_left_svd(a, a_next, ...)

Left-orthonormalize the local site tensor a by a SVD, and update the tensor at the next site.

mps_local_orthonormalize_right_qr(a, a_prev, ...)

Right-orthonormalize the local site tensor a by a QR decomposition, and update the tensor at the previous site.

mps_local_orthonormalize_right_svd(a, ...)

Right-orthonormalize the local site tensor a by a SVD, and update the tensor at the previous site.

mps_merge_tensor_pair(a0, a1)

Merge two neighboring MPS tensors.

mps_norm(psi)

Compute the standard L2 norm of a matrix product state.

mps_split_tensor_svd(a, qsite0, qsite1, ...)

Split an MPS tensor with dimension b0 x d0*d1 x b2 into two MPS tensors with dimensions b0 x d0 x b1 and b1 x d1 x b2, respectively.

mps_vdot(chi, psi)

Compute the dot (scalar) product <chi | psi>, complex conjugating chi.

Classes

MPS(qsite, qbonds[, fill, rng])

Matrix product state (MPS) class.