User guide
tenpy_toycodes/a_mps.py
tenpy_toycodes/b_model.py
exercise_toycodes.ipynb
exercise_tenpy.ipynb
Reference
run_simulation()
resume_from_checkpoint()
run_seq_simulations()
console_main()
show_config()
__version__
__full_version__
Algorithm
TimeDependentHAlgorithm
TimeEvolutionAlgorithm
QRBasedTEBDEngine
RandomUnitaryEvolution
TEBDEngine
TimeDependentTEBD
DensityMatrixMixer
DummyTwoSiteH
EffectiveH
IterativeSweeps
Mixer
OneSiteH
QRBasedVariationalApplyMPO
SubspaceExpansion
Sweep
TwoSiteH
VariationalApplyMPO
VariationalCompression
ZeroSiteH
DMRGEngine
SingleSiteDMRGEngine
TwoSiteDMRGEngine
chi_list()
full_diag_effH()
run()
DMRGThreadPlusHC
TwoSiteHThreadPlusHC
SingleSiteTDVPEngine
TDVPEngine
TimeDependentSingleSiteTDVP
TimeDependentTwoSiteTDVP
TwoSiteTDVPEngine
PurificationApplyMPO
PurificationTEBD
PurificationTEBD2
PurificationTwoSiteU
ExpMPOEvolution
TimeDependentExpMPOEvolution
SingleSiteVUMPSEngine
TwoSiteVUMPSEngine
VUMPSEngine
MultiSitePlaneWaveExcitationEngine
PlaneWaveExcitationEngine
append_left_env()
append_right_env()
construct_orthogonal()
contract()
ncon()
ExactDiag
BackwardDisentangler
CompositeDisentangler
DiagonalizeDisentangler
Disentangler
GradientDescentDisentangler
LastDisentangler
MinDisentangler
NoiseDisentangler
NormDisentangler
RenyiDisentangler
get_disentangler()
disentanglers_atom_parse_dict
Array
concatenate()
detect_grid_outer_legcharge()
detect_legcharge()
detect_qtotal()
diag()
eig()
eigh()
eigvals()
eigvalsh()
expm()
eye_like()
grid_concat()
grid_outer()
inner()
norm()
ones()
orthogonal_columns()
outer()
pinv()
polar()
qr()
speigs()
svd()
tensordot()
to_iterable_arrays()
trace()
zeros()
QCUTOFF
QTYPE
ChargeInfo
LegCharge
LegPipe
COE()
CRE()
CUE()
GOE()
GUE()
O_close_1()
U_close_1()
box()
standard_normal_complex()
BoostNpcLinearOperator
FlatHermitianOperator
FlatLinearOperator
NpcLinearOperator
NpcLinearOperatorWrapper
OrthogonalNpcLinearOperator
ShiftNpcLinearOperator
SumNpcLinearOperator
Arnoldi
GMRES
KrylovBased
LanczosEvolution
LanczosGroundState
gram_schmidt()
iadd_prefactor_other()
iscale_prefactor()
lanczos_arpack()
plot_stats()
TruncationError
decompose_theta_qr_based()
svd_theta()
truncate()
Chain
HelicalLattice
Honeycomb
IrregularLattice
Kagome
Ladder
Lattice
MultiSpeciesLattice
NLegLadder
SimpleBZ
SimpleLattice
Square
Triangular
TrivialLattice
get_lattice()
get_order()
get_order_grouped()
CouplingMPOModel
CouplingModel
MPOModel
Model
NearestNeighborModel
TFIChain
TFIModel
XXZChain
XXZChain2
SpinChain
SpinModel
SpinChainNNN
SpinChainNNN2
FermionChain
FermionModel
BoseHubbardChain
BoseHubbardModel
FermiHubbardChain
FermiHubbardModel
FermiHubbardModel2
tJChain
tJModel
AKLTChain
HofstadterBosons
HofstadterFermions
gauge_hopping()
BosonicHaldaneModel
FermionicHaldaneModel
DualSquare
ToricCode
HubbardMixedXKSquare
MixedXKLattice
MixedXKModel
SpinlessMixedXKSquare
ClockChain
ClockModel
BosonSite
ClockSite
FermionSite
GroupedSite
Site
SpinHalfFermionSite
SpinHalfHoleSite
SpinHalfSite
SpinSite
group_sites()
kron()
set_common_charges()
spin_half_species()
BaseEnvironment
BaseMPSExpectationValue
InitialStateBuilder
MPS
MPSEnvironment
TransferMatrix
build_initial_state()
MPO
MPOEnvironment
MPOGraph
MPOTransferMatrix
grid_insert_ops()
make_W_II()
CouplingTerms
ExponentiallyDecayingTerms
MultiCouplingTerms
OnsiteTerms
TermList
order_combine_term()
PurificationMPS
convert_model_purification_canonical_conserve_ancilla_charge()
UniformMPS
MomentumMPS
Simulation
Skip
estimate_simulation_RAM()
init_simulation()
init_simulation_from_checkpoint()
output_filename_from_dict()
m_bond_dimension()
m_bond_energies()
m_correlation_length()
m_energy_MPO()
m_entropy()
m_evolved_time()
m_measurement_index()
m_onsite_expectation_value()
m_simulation_parameter()
measurement_wrapper()
ExcitationInitialState
GroundStateSearch
OrthogonalExcitations
PlaneWaveExcitations
TopologicalExcitations
RealTimeEvolution
SpectralSimulation
SpectralSimulationEvolveBraKet
TimeDependentCorrelation
TimeDependentCorrelationEvolveBraKet
DataFiles
DataLoader
pp_plot_correlations_on_lattice()
pp_spectral_function()
Hdf5Exportable
Hdf5Ignored
Hdf5Loader
Hdf5Saver
Hdf5ExportError
Hdf5FormatError
Hdf5ImportError
find_global()
load()
load_from_hdf5()
save()
save_to_hdf5()
valid_hdf5_path_component()
ATTR_TYPE
ATTR_CLASS
ATTR_MODULE
ATTR_LEN
ATTR_FORMAT
REPR_HDF5EXPORTABLE
REPR_ARRAY
REPR_MASKED_ARRAY
REPR_INT
REPR_INT_AS_STR
REPR_FLOAT
REPR_STR
REPR_BYTES
REPR_COMPLEX
REPR_INT64
REPR_FLOAT64
REPR_INT32
REPR_FLOAT32
REPR_BOOL
REPR_NONE
REPR_RANGE
REPR_LIST
REPR_TUPLE
REPR_SET
REPR_DICT_GENERAL
REPR_DICT_SIMPLE
REPR_DTYPE
REPR_IGNORED
TYPES_FOR_HDF5_DATASETS
Config
asConfig()
load_yaml_with_py_eval()
EventHandler
Listener
BetaWarning
TenpyInconsistencyError
TenpyInconsistencyWarning
add_with_None_0()
anynan()
argsort()
atleast_2d_pad()
consistency_check()
convert_memory_units()
find_subclass()
flatten()
get_close()
get_recursive()
group_by_degeneracy()
inverse_permutation()
lexsort()
list_to_dict_list()
merge_recursive()
pad()
set_recursive()
setup_logging()
to_array()
to_iterable()
to_iterable_of_len()
transpose_list_list()
update_recursive()
zero_if_close()
entropy()
gcd()
gcd_array()
lcm()
matvec_to_array()
perm_sign()
qr_li()
rq_li()
speigsh()
LeviCivita3
alg_decay()
alg_decay_fit()
alg_decay_fit_res()
alg_decay_fits()
central_charge_from_S_profile()
entropy_profile_from_CFT()
fit_with_sum_of_exp()
lin_fit_res()
linear_fit()
plot_alg_decay_fit()
sum_of_exp()
format_like_list()
is_non_string_iterable()
join_as_many_as_possible()
to_mathematica_lists()
vert_join()
load_omp_library()
memory_usage()
mkl_get_nthreads()
mkl_set_nthreads()
omp_get_nthreads()
omp_set_nthreads()
OptimizationFlag
temporary_level
get_level()
optimize()
set_level()
to_OptimizationFlag()
use_cython()
bottleneck
have_cython_functions
compiled_with_MKL
CacheFile
DictCache
Hdf5Storage
PickleStorage
Storage
ThreadedStorage
Worker
WorkerDied
apply_gaussian_windowing()
fourier_transform_space()
fourier_transform_time()
plot_correlations_on_lattice()
spectral_function()
to_mps_geometry()
get_alpha_and_c()
get_lpc()
linear_prediction()
simple_linear_prediction_1d()
version
released
short_version
git_revision
full_version
version_summary
Indices
full name: tenpy.tools.misc.pad
parent module: tenpy.tools.misc
tenpy.tools.misc
type: function
Pad an array along a given axis.
a (ndarray) – the array to be padded
w_l (int) – the width to be padded in the front
v_l (dtype) – the value to be inserted before a
w_r (int) – the width to be padded after the last index
v_r (dtype) – the value to be inserted after a
axis (int) – the axis along which to pad
padded – a copy of a with enlarged axis, padded with the given values.
ndarray