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

Errors when calling "get_qvm" or "get_qpu" #17

Open
dongmoon-min opened this issue Jul 4, 2024 · 0 comments
Open

Errors when calling "get_qvm" or "get_qpu" #17

dongmoon-min opened this issue Jul 4, 2024 · 0 comments

Comments

@dongmoon-min
Copy link

dongmoon-min commented Jul 4, 2024

Hi all,

I suffer from the following issue when calling "get_qvm ()" and "get_qpu (~)".
Could you clarify and resolve the issue?

Specifically, when I execute
qc = get_qvm()
I see the error below.

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
----> 1 qc = get_qvm()

File ~/anaconda3/envs/azure_quantum/lib/python3.11/site-packages/pyquil_for_azure_quantum/__init__.py:156, in get_qvm()
    137 def get_qvm() -> AzureQuantumComputer:
    138     \"\"\"Get an AzureQuantumComputer targeting a cloud-hosted QVM
    139 
    140     These Azure Quantum configuration environment variables __must__ be set:
   (...)
    154         KeyError: If required environment variables are not set.
    155     \"\"\"
--> 156     return AzureQuantumComputer(target=RigettiTarget.QVM.value, qpu_name=\"qvm\")

File ~/anaconda3/envs/azure_quantum/lib/python3.11/site-packages/pyquil_for_azure_quantum/__init__.py:71, in AzureQuantumComputer.__init__(self, target, qpu_name)
     70 def __init__(self, *, target: str, qpu_name: str):
---> 71     qam = AzureQuantumMachine(target=target)
     72     compiler = Proxy(lambda: get_qc(qpu_name).compiler)
     73     super().__init__(name=qpu_name, qam=qam, compiler=compiler)

TypeError: Can't instantiate abstract class AzureQuantumMachine with abstract method execute_with_memory_map_batch

Here is the full list of my Anaconda packages.

# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main
_openmp_mutex             5.1                       1_gnu
aiofile                   3.8.8                    pypi_0    pypi
aiohttp                   3.9.5                    pypi_0    pypi
aiosignal                 1.3.1                    pypi_0    pypi
asttokens                 2.4.1              pyhd8ed1ab_0    conda-forge
attrs                     23.2.0                   pypi_0    pypi
azure-core                1.30.2                   pypi_0    pypi
azure-identity            1.17.1                   pypi_0    pypi
azure-quantum             0.30.0                   pypi_0    pypi
azure-storage-blob        12.20.0                  pypi_0    pypi
bzip2                     1.0.8                h5eee18b_6
ca-certificates           2024.7.4             hbcca054_0    conda-forge
caio                      0.9.17                   pypi_0    pypi
certifi                   2024.7.4                 pypi_0    pypi
cffi                      1.16.0                   pypi_0    pypi
charset-normalizer        3.3.2                    pypi_0    pypi
comm                      0.2.2              pyhd8ed1ab_0    conda-forge
cryptography              42.0.8                   pypi_0    pypi
debugpy                   1.6.7           py311h6a678d5_0
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
deprecated                1.2.14                   pypi_0    pypi
exceptiongroup            1.2.0              pyhd8ed1ab_2    conda-forge
executing                 2.0.1              pyhd8ed1ab_0    conda-forge
frozenlist                1.4.1                    pypi_0    pypi
idna                      3.7                      pypi_0    pypi
importlib-metadata        8.0.0              pyha770c72_0    conda-forge
importlib_metadata        8.0.0                hd8ed1ab_0    conda-forge
ipykernel                 6.29.5             pyh3099207_0    conda-forge
ipython                   8.26.0             pyh707e725_0    conda-forge
isodate                   0.6.1                    pypi_0    pypi
jedi                      0.19.1             pyhd8ed1ab_0    conda-forge
jupyter_client            8.6.2              pyhd8ed1ab_0    conda-forge
jupyter_core              5.7.2           py311h38be061_0    conda-forge
lazy-object-proxy         1.10.0                   pypi_0    pypi
ld_impl_linux-64          2.38                 h1181459_1
libffi                    3.4.4                h6a678d5_1
libgcc-ng                 11.2.0               h1234567_1
libgomp                   11.2.0               h1234567_1
libsodium                 1.0.18               h36c2ea0_1    conda-forge
libstdcxx-ng              11.2.0               h1234567_1
libuuid                   1.41.5               h5eee18b_0
markdown                  3.6                      pypi_0    pypi
matplotlib-inline         0.1.7              pyhd8ed1ab_0    conda-forge
msal                      1.29.0                   pypi_0    pypi
msal-extensions           1.2.0                    pypi_0    pypi
msgpack                   1.0.8                    pypi_0    pypi
msrest                    0.7.1                    pypi_0    pypi
multidict                 6.0.5                    pypi_0    pypi
ncurses                   6.4                  h6a678d5_0
nest-asyncio              1.6.0              pyhd8ed1ab_0    conda-forge
networkx                  3.3                      pypi_0    pypi
numpy                     1.26.4                   pypi_0    pypi
oauthlib                  3.2.2                    pypi_0    pypi
openssl                   3.0.14               h5eee18b_0
packaging                 23.2                     pypi_0    pypi
parso                     0.8.4              pyhd8ed1ab_0    conda-forge
pexpect                   4.9.0              pyhd8ed1ab_0    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pip                       24.0            py311h06a4308_0
platformdirs              4.2.2              pyhd8ed1ab_0    conda-forge
portalocker               2.10.0                   pypi_0    pypi
prompt-toolkit            3.0.47             pyha770c72_0    conda-forge
psutil                    5.9.0           py311h5eee18b_0
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
pycparser                 2.22                     pypi_0    pypi
pygments                  2.18.0             pyhd8ed1ab_0    conda-forge
pyjwt                     2.8.0                    pypi_0    pypi
pyquil                    4.12.0                   pypi_0    pypi
pyquil-for-azure-quantum  0.0.3                    pypi_0    pypi
python                    3.11.9               h955ad1f_0
python-dateutil           2.9.0              pyhd8ed1ab_0    conda-forge
python-markdown-math      0.8                      pypi_0    pypi
python-rapidjson          1.18                     pypi_0    pypi
python_abi                3.11                    2_cp311    conda-forge
pyzmq                     26.0.3                   pypi_0    pypi
qcs-sdk-python            0.18.0                   pypi_0    pypi
quil                      0.10.0                   pypi_0    pypi
readline                  8.2                  h5eee18b_0
requests                  2.32.3                   pypi_0    pypi
requests-oauthlib         2.0.0                    pypi_0    pypi
rpcq                      3.11.0                   pypi_0    pypi
ruamel-yaml               0.18.6                   pypi_0    pypi
ruamel-yaml-clib          0.2.8                    pypi_0    pypi
scipy                     1.14.0                   pypi_0    pypi
setuptools                69.5.1          py311h06a4308_0
six                       1.16.0             pyh6c4a22f_0    conda-forge
sqlite                    3.45.3               h5eee18b_0
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
tk                        8.6.14               h39e8969_0
tornado                   6.4.1           py311h5eee18b_0
traitlets                 5.14.3             pyhd8ed1ab_0    conda-forge
types-deprecated          1.2.9.20240311           pypi_0    pypi
typing_extensions         4.12.2             pyha770c72_0    conda-forge
tzdata                    2024a                h04d1e81_0
urllib3                   2.2.2                    pypi_0    pypi
wcwidth                   0.2.13             pyhd8ed1ab_0    conda-forge
wheel                     0.43.0          py311h06a4308_0
wrapt                     1.16.0                   pypi_0    pypi
xz                        5.4.6                h5eee18b_1
yarl                      1.9.4                    pypi_0    pypi
zeromq                    4.3.5                h6a678d5_0
zipp                      3.19.2             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               h5eee18b_1
@dongmoon-min dongmoon-min changed the title Error when calling "get_qvm" and "get_qpu" Errors when calling "get_qvm" and "get_qpu" Jul 4, 2024
@dongmoon-min dongmoon-min changed the title Errors when calling "get_qvm" and "get_qpu" Errors when calling "get_qvm" or "get_qpu" Jul 4, 2024
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