diff --git a/electronic_structure_algorithms/excited_states_eigensolvers/mcvqe.py b/electronic_structure_algorithms/excited_states_eigensolvers/mcvqe.py index 3c0b742..d93f892 100644 --- a/electronic_structure_algorithms/excited_states_eigensolvers/mcvqe.py +++ b/electronic_structure_algorithms/excited_states_eigensolvers/mcvqe.py @@ -264,8 +264,6 @@ def initialize_mcvqe(self) -> None: initial_states[n] = np.asarray(Statevector(state)) - self.initial_states = initial_states - if self.excitations == 's': num_spin_orbitals = self.one_body_integrals.shape[0] @@ -285,6 +283,8 @@ def initialize_mcvqe(self) -> None: if self.initial_states is None: self.initial_states = [QuantumCircuit(self.ansatz.num_qubits) for n in range(self.k)] + + #self.initial_states = [QuantumCircuit(self.ansatz.num_qubits) for n in range(self.k)] for n in range(self.k): self.initial_states[n].initialize(initial_states[n], self.initial_states[n].qubits) diff --git a/tests/test_mcvqe.py b/tests/test_mcvqe.py index 763d3d9..82cd92d 100644 --- a/tests/test_mcvqe.py +++ b/tests/test_mcvqe.py @@ -11,8 +11,7 @@ # that they have been altered from the originals. """ Test SSVQE """ -import sys -sys.path.append('..') + import unittest from tests.algorithms_test_case import QiskitAlgorithmsTestCase