From 2e05f90fccaddfbbfc7c5cbc2b9e446558b57ed3 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia-Ripoll Date: Sun, 5 May 2024 12:53:24 +0200 Subject: [PATCH] Fixed type and linting problems --- src/seemps/state/canonical_mps.py | 5 ++++- src/seemps/state/core.pyi | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/seemps/state/canonical_mps.py b/src/seemps/state/canonical_mps.py index 0f10cd5..390db38 100644 --- a/src/seemps/state/canonical_mps.py +++ b/src/seemps/state/canonical_mps.py @@ -16,7 +16,10 @@ __all__ = [ "CanonicalMPS", "_update_in_canonical_form_right", - "_update_in_canonical_form_right", + "_update_in_canonical_form_left", + "_update_canonical_2site_left", # TODO: Delete + "_update_canonical_2site_right", # TODO: Delete + "_canonicalize", # TODO: Delete ] diff --git a/src/seemps/state/core.pyi b/src/seemps/state/core.pyi index 35333b0..9a434df 100644 --- a/src/seemps/state/core.pyi +++ b/src/seemps/state/core.pyi @@ -223,6 +223,7 @@ class MPSSum: def _joined_tensors(self, i: int, L: int) -> Tensor3: ... def join(self) -> MPS: ... def as_mps(self) -> MPS: ... + def delete_zero_components(self) -> float: ... # TODO: hide *environment*() functions with '_' def _begin_environment(D: Optional[int] = 1) -> Environment: ...