Skip to content

Commit

Permalink
Fix basis in EFGSS test
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-johnson committed Apr 12, 2023
1 parent 5ad45fb commit 5c01e61
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ def test_entanglement_forging_vqe_hydrogen(self):
spin=0,
basis="sto3g",
)
problem = driver.run()
problem.basis = ElectronicBasis.AO
driver.run()
problem = driver.to_problem(basis=ElectronicBasis.AO)
qcschema = driver.to_qcschema()
mo_coeff = get_ao_to_mo_from_qcschema(qcschema).coefficients.alpha["+-"]

# Specify the ansatz and bitstrings
ansatz = EntanglementForgingAnsatz(
Expand All @@ -55,7 +56,6 @@ def test_entanglement_forging_vqe_hydrogen(self):
)

# Set up the entanglement forging vqe object
mo_coeff = get_ao_to_mo_from_qcschema(qcschema).coefficients.alpha["+-"]
solver = EntanglementForgingGroundStateSolver(
ansatz=ansatz,
optimizer=self.optimizer,
Expand Down

0 comments on commit 5c01e61

Please sign in to comment.