From f019763c61636843ce40a7ae4cafab7f3c3e176b Mon Sep 17 00:00:00 2001 From: Oliver Huettenhofer Date: Tue, 12 Nov 2024 16:03:41 +0100 Subject: [PATCH] Fix another error --- src/tequila/quantumchemistry/encodings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tequila/quantumchemistry/encodings.py b/src/tequila/quantumchemistry/encodings.py index 4ce088df..a842f2d7 100644 --- a/src/tequila/quantumchemistry/encodings.py +++ b/src/tequila/quantumchemistry/encodings.py @@ -128,7 +128,7 @@ def map_state(self, state: list, *args, **kwargs) -> list: fop = openfermion.FermionOperator(string, 1.0) op = self(fop) from tequila.wavefunction.qubit_wavefunction import QubitWaveFunction - wfn = QubitWaveFunction.from_basis_state(0, n_qubits=n_qubits) + wfn = QubitWaveFunction.from_basis_state(n_qubits, 0) wfn = wfn.apply_qubitoperator(operator=op) assert (len(wfn.keys()) == 1) key = list(wfn.keys())[0].array