You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.
and ran my vqe_ensemble.py for the analysis purposes. However, I get the following error message:
Traceback (most recent call last):
File "vqe_ensemble.py", line 9, in <module>
import determinant_ansatz as determinant_ansatz
File "/Users/user/git-repo/offdiagonal/determinant_ansatz.py", line 5, in <module>
from settings import CONFIG
File "/Users/user/git-repo/offdiagonal/settings.py", line 26, in <module>
spec.loader.exec_module(CONFIG)
File "./configs/sample_config.py", line 41, in <module>
ansatz=LowRankTrotterAnsatz(molecule.get_molecular_hamiltonian())
File "/Users/user/git-repo/OpenFermion-Cirq/openfermioncirq/variational/ansatzes/low_rank.py", line 158, in __init__
one_body_squares[j]))
File "/Users/user/anaconda3/envs/vqe/lib/python3.6/site-packages/openfermion/utils/_low_rank.py", line 209, in prepare_one_body_squared_evolution
raise ValueError('one_body_matrix is not Hermitian.')
ValueError: one_body_matrix is not Hermitian.
I was able to run the same code for the linear H2 and H4 molecules without getting the ValueError at the end. It seems like there may be some numerical error that makes the one_body_matrix non-Hermitian.
The text was updated successfully, but these errors were encountered:
I agree with @unpilbaek that its quite possibly due to some sort of numerical round-off error. I won't have time to get to the bottom of this right now though. The low rank factorization stuff is very prone to numerical instabilities.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have set up the H6 molecule as below and used the
LowRankTrotterAnsatz
in the./configs/sample_config.py
:and ran my
vqe_ensemble.py
for the analysis purposes. However, I get the following error message:I was able to run the same code for the linear H2 and H4 molecules without getting the ValueError at the end. It seems like there may be some numerical error that makes the
one_body_matrix
non-Hermitian.The text was updated successfully, but these errors were encountered: