• full name: tenpy.simulations.measurement

  • parent module: tenpy.simulations

  • type: module


bond_dimension(results, psi, simulation[, key])

‘Measure’ the bond dimension of an MPS.

bond_energies(results, psi, simulation[, key])

Measure the energy of an MPS.

correlation_length(results, psi, simulation)

Measure the correlaiton of an infinite MPS.

energy_MPO(results, psi, simulation[, key])

Measure the energy of an MPS by evaluating the MPS expectation value.

entropy(results, psi, simulation[, key])

Measure the entropy at all bonds of an MPS.

evolved_time(results, psi, simulation[, key])

Measure the time evolved by the engine, engine.evolved_time.

measurement_index(results, psi, simulation)

‘Measure’ the index of how many mearuements have been performed so far.

onsite_expectation_value(results, psi, …)

Measure expectation values of an onsite operator.

Module description

Functions to perform measurments.

All measurement functions provided in this module support the interface used by the simulation class, i.e. they take the parameters documented in measurement_index() and write the measurement results into the results dictionary taken as argument.


test, provide more.