convert_model_purification_canonical_conserve_ancilla_charge¶
full name: tenpy.networks.purification_mps.convert_model_purification_canonical_conserve_ancilla_charge
parent module:
tenpy.networks.purification_mps
type: function
- tenpy.networks.purification_mps.convert_model_purification_canonical_conserve_ancilla_charge(model)[source]¶
Extend charges of model for
PurificationMPS.from_infiniteT_canonical()
.- Parameters
model (
tenpy.models.model.Model
) – Model to be converted.- Returns
model_with_extra_charges – Shallow copy of the model with charges of sites, H_MPO and H_bond adjusted to fit the doubled (with 0 extended) charges of the canonical ensemble of the
PurificationMPS
. The number of- Return type