minimal_ExpMPOEvolution.yml

on github (download).

#!/usr/bin/env -S python -m tenpy 

simulation_class : RealTimeEvolution

directory: results
output_filename : a_minimal_ExpMPOEvolution.h5

model_class :  SpinChain
model_params :
    L : 32
    bc_MPS : finite
    Jz : 1.

initial_state_params:
    method : lat_product_state
    product_state : [[up], [down]]

algorithm_class: ExpMPOEvolution
algorithm_params:
    compression_method: variational
    trunc_params:
        chi_max: 120
    dt : 0.05
    N_steps : 2  # measurements every dt*N_steps
    max_sweeps: 5
    tol_theta_diff: 1.e-5

final_time :  1.

# additional measurements during the evolution
connect_measurements: 
  - - tenpy.simulations.measurement
    - m_onsite_expectation_value
    - opname: Sz
  - - psi_method
    - wrap correlation_function
    - results_key: '<Sp_i Sm_j>'
      ops1: Sp
      ops2: Sm