pytenet.chain_ops

Higher-level tensor network operations on a chain topology.

Functions

apply_local_bond_contraction(c, l, r)

Apply a "zero-site" bond contraction.

apply_local_hamiltonian(a, w, l, r)

Apply a local Hamiltonian operator.

apply_mpo(op, psi)

Apply an operator represented as MPO to a state in MPS form.

compute_right_operator_blocks(psi, op)

Compute all partial contractions from the right.

contraction_operator_density_step_right(a, w, r)

Contraction step between two matrix product operators (typically a density matrix and a Hamiltonian).

contraction_operator_step_left(a, b, w, l)

Contraction step from left to right, with a matrix product operator sandwiched in between.

contraction_operator_step_right(a, b, w, r)

Contraction step from right to left, with a matrix product operator sandwiched in between.

mpo_average(psi, op)

Compute the expectation value <psi | op | psi>.

mpo_density_average(rho, op)

Compute the expectation value tr[op rho].

mpo_inner_product(chi, op, psi)

Compute the inner product <chi | op | psi>.