Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encounter Problem in using the examples #3

Open
alanspace opened this issue Mar 2, 2022 · 0 comments
Open

Encounter Problem in using the examples #3

alanspace opened this issue Mar 2, 2022 · 0 comments

Comments

@alanspace
Copy link

alanspace commented Mar 2, 2022

Hello, I cannot run your example due to encountering the following errors.

When running qae_h2_demo, I have the following error:


ImportError Traceback (most recent call last)
in
5 import os
6
----> 7 from openfermion.hamiltonians import MolecularData
8 from openfermion.transforms import get_sparse_operator, jordan_wigner
9 from openfermion.utils import get_ground_state

ImportError: cannot import name 'MolecularData' from 'openfermion.hamiltonians' (/Downloads/QML/OpenFermion/src/openfermion/hamiltonians/init.py)

When running qae_two_qubit_demo, I have the following error:

ModuleNotFoundError Traceback (most recent call last)
in
6 import scipy.optimize
7
----> 8 from pyquil.gates import *
9 from pyquil import Program
10

~/opt/anaconda3/lib/python3.8/site-packages/pyquil/init.py in
1 from pyquil._version import pyquil_version
----> 2 from pyquil.quil import Program
3 from pyquil.api import list_quantum_computers, get_qc
4
5 version = pyquil_version

~/opt/anaconda3/lib/python3.8/site-packages/pyquil/quil.py in
38
39 import numpy as np
---> 40 from rpcq.messages import NativeQuilMetadata, ParameterAref
41
42 from pyquil._parser.parser import run_parser

~/opt/anaconda3/lib/python3.8/site-packages/rpcq/init.py in
----> 1 from rpcq._client import Client, ClientAuthConfig
2 from rpcq._server import Server, ServerAuthConfig
3 # These are imported so that the corresponding data classes are
4 # registered whenever rpcq is imported. Without which one would have
5 # to import the messages and core_messages modules directly before

~/opt/anaconda3/lib/python3.8/site-packages/rpcq/_client.py in
24 import zmq.asyncio
25
---> 26 from rpcq._base import to_msgpack, from_msgpack
27 import rpcq._utils as utils
28 from rpcq.messages import RPCError, RPCReply

~/opt/anaconda3/lib/python3.8/site-packages/rpcq/_base.py in
20 import msgpack
21 import rapidjson
---> 22 from ruamel import yaml
23
24 if sys.version_info < (3, 7):

ModuleNotFoundError: No module named 'ruamel'

When running run_landscape_scan, I have the similar error as above:


ModuleNotFoundError Traceback (most recent call last)
in
6 import scipy.optimize
7
----> 8 from pyquil.gates import *
9 from pyquil import Program
10

~/opt/anaconda3/lib/python3.8/site-packages/pyquil/init.py in
1 from pyquil._version import pyquil_version
----> 2 from pyquil.quil import Program
3 from pyquil.api import list_quantum_computers, get_qc
4
5 version = pyquil_version

~/opt/anaconda3/lib/python3.8/site-packages/pyquil/quil.py in
38
39 import numpy as np
---> 40 from rpcq.messages import NativeQuilMetadata, ParameterAref
41
42 from pyquil._parser.parser import run_parser

~/opt/anaconda3/lib/python3.8/site-packages/rpcq/init.py in
----> 1 from rpcq._client import Client, ClientAuthConfig
2 from rpcq._server import Server, ServerAuthConfig
3 # These are imported so that the corresponding data classes are
4 # registered whenever rpcq is imported. Without which one would have
5 # to import the messages and core_messages modules directly before

~/opt/anaconda3/lib/python3.8/site-packages/rpcq/_client.py in
24 import zmq.asyncio
25
---> 26 from rpcq._base import to_msgpack, from_msgpack
27 import rpcq._utils as utils
28 from rpcq.messages import RPCError, RPCReply

~/opt/anaconda3/lib/python3.8/site-packages/rpcq/_base.py in
20 import msgpack
21 import rapidjson
---> 22 from ruamel import yaml
23
24 if sys.version_info < (3, 7):

ModuleNotFoundError: No module named 'ruamel'

Please shed light on it, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant