Skip to content

Commit

Permalink
Fix another error
Browse files Browse the repository at this point in the history
  • Loading branch information
ohuettenhofer committed Nov 12, 2024
1 parent 9ff305d commit f019763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tequila/quantumchemistry/encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f019763

Please sign in to comment.