pytenet

PyTeNet

Python implementation of quantum tensor network operations and simulations within the matrix product state framework.

Modules

autop

Operator state automaton, can be converted to an MPO via an operator graph.

bipartite_graph

Implementation of the Hopcroft-Karp algorithm, based on https://en.wikipedia.org/wiki/Hopcroft%E2%80%93Karp_algorithm

block_sparse_util

utility functions for handling block-sparse tensors with quantum number conservation.

bond_ops

Functions concerning virtual bonds.

chain_ops

Higher-level tensor network operations on a chain topology.

dmrg

DMRG algorithm.

hamiltonian_bose_hubbard

Construct the Bose-Hubbard Hamiltonian as a matrix product operator (MPO).

hamiltonian_fermi_hubbard

Construct the Fermi-Hubbard Hamiltonian as a matrix product operator (MPO).

hamiltonian_heisenberg

Construct the Heisenberg Hamiltonian as a matrix product operator (MPO).

hamiltonian_ising

Construct the Ising Hamiltonian as a matrix product operator (MPO).

hamiltonian_linear_fermionic

Represent a sum of fermionic creation or annihilation operators as a matrix product operator (MPO).

hamiltonian_molecular

Construct a molecular Hamiltonian as a matrix product operator (MPO).

hamiltonian_quadratic_fermionic

Represent a product of sums of fermionic creation and annihilation operators as a matrix product operator (MPO).

hamiltonian_spin_molecular

Construct a spin molecular Hamiltonian as a matrix product operator (MPO).

hamiltonian_util

Construct a Hamiltonian as an MPO based on local operator chains, which are shifted along a 1D lattice.

krylov

Krylov subspace algorithms.

mpo

Matrix product operator (MPO) class and associated functionality.

mps

Matrix product state (MPS) class and associated functionality.

opchain

Symbolic operator chain.

opgraph

Operator graph internal data structure for generating MPO representations.

optree

Symbolic operator tree.

qnumber

Quantum number utility functions.

tdvp

TDVP time integration algorithms for MPS, based on a Lanczos iteration for the local time evolution steps.

thc

Tensor hypercontraction (THC) representation of molecular Hamiltonians.

util

Generic utility functions.