Model of general expectation value calculation
- class varipeps.expectation.model.Expectation_Model
Bases:
ABCAbstract model of an general expectation value calculated for the complete unit cell.
- Parameters:
is_spiral_peps (
bool) – Flag if the expectation value is for a spiral iPEPS ansatz.
- abstractmethod __call__(peps_tensors: Sequence[Array], unitcell: PEPS_Unit_Cell, spiral_vectors: Array | Sequence[Array] | None = None, *, normalize_by_size: bool = True, only_unique: bool = True) Array | List[Array]
Calculate the expectation value for PEPS unitcell depending on the gates set in the class.
- Parameters:
peps_tensors (sequence of
jax.numpy.ndarray) – The sequence of unique PEPS tensors in the unitcell.unitcell (
PEPS_Unit_Cell) – The PEPS unitcell.spiral_vectors (single or sequence of
jax.numpy.ndarray, optional) – If the expectation value is for a spiral iPEPS ansatz, in this argument the wavevectors are expected.Default:None- Keyword Arguments: