Closed lumapools closed 1 year ago
@lumapools Thank you for your attempt implemeting issue #234. Please give us a few days while we review the code!
@lumapools as agreed I have merged the fixes from @GiacomoFrn. Please, go ahead and update your tests and then we are good to go :)
@Q-lds Closed this PR due to some synchronization issues and not being able to fetch the latest changes. I made a fresh clone, and the new PR is #246 where only the tests appear.
Description
We can now call
QAOA.brute_force()
to brute force the ground state of its cost Hamiltonian.Description
brute_force()
that indirectly computes the ground state energy of the QAOA Hamiltonian.bounded
default parameter from theground_state_hamiltonian
method, hence the original 25 qubit limitChecklist
Type of change
How Has This Been Tested?
Added a test in
test_workflows.py
calledtest_brute_force
which checks that:test_brute_force
raises an errorbounded
parameter still acts as it used to withutilities.ground_state_hamiltonian
and raises an error when necessary