You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO: currently, this default Sz conservation is coupled to the LegCharge definition in
# MPOState.initialize_from_lattice. Not conserving Sz errors with 'Different ChargeInfo'.
Currently, the LayerModel.init_sites method defaults to conserve="Sz" for the SpinHalfSite objects being created. While one can theoretically overwrite this via the model_params, setting it to None currently breaks the leg-charges of the initial MPO state. This has to be addressed here:
Currently, the tenpy backends require
Sz
conservation. We should consider lifting this limitation.qiskit-addon-mpf/qiskit_addon_mpf/backends/tenpy_layers/model.py
Lines 51 to 52 in 191dc81
Currently, the
LayerModel.init_sites
method defaults toconserve="Sz"
for theSpinHalfSite
objects being created. While one can theoretically overwrite this via themodel_params
, setting it toNone
currently breaks the leg-charges of the initial MPO state. This has to be addressed here:qiskit-addon-mpf/qiskit_addon_mpf/backends/tenpy_tebd/state.py
Lines 70 to 71 in 191dc81
The text was updated successfully, but these errors were encountered: