Created
November 3, 2021 21:04
-
-
Save techwithshadab/9f9371b67fa50852255060e7601c0946 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def numpyEigensolver(qubitOp): | |
selections = [] | |
exact_eigensolver = NumPyMinimumEigensolver(qubitOp) | |
result = exact_eigensolver.run() | |
selection, state, values, probabilities = print_result(result) | |
print(selection_to_picks(num_assets, selection)) | |
return state, values, probabilities |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment