From 2713bac6e94f83156d1bf776bd1cb468fb40f168 Mon Sep 17 00:00:00 2001 From: AlexisRalli Date: Fri, 30 Sep 2022 15:27:02 +0100 Subject: [PATCH] typing of from_array fixed --- symmer/symplectic/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symmer/symplectic/base.py b/symmer/symplectic/base.py index bb7cde50..189daedb 100644 --- a/symmer/symplectic/base.py +++ b/symmer/symplectic/base.py @@ -1046,7 +1046,7 @@ def sample_state(self, n_samples: int, return_normalized: bool=False) -> "Quantu @classmethod def from_array(cls, - statevector: Union[List[complex], np.array], + statevector: np.array, threshold: float =1e-15, ) -> "QuantumState": """ Initialize a QubitState from a vector of 2^N elements over N qubits