Closed cosenal closed 2 months ago
Closing as not an issue.
Tl;dr: I fell victim of this breaking change from Changelog.
I am running QVM on a port different than the default 5000, because of https://github.com/rigetti/pyquil/issues/1653. I was doing this by overriding the QVM url via the env variable QCS_SETTINGS_APPLICATIONS_QVM_URL
mentioned here. The thing is.. this env variable used to have a different name (i.e., QCS_SETTINGS_APPLICATIONS_PYQUIL_QVM_URL
) in pyQuil v3, which is the version I am using.
Snippet of working code from ipython:
In [2]: %env QCS_SETTINGS_APPLICATIONS_PYQUIL_QVM_URL=http://127.0.0.1:5001
env: QCS_SETTINGS_APPLICATIONS_PYQUIL_QVM_URL=http://127.0.0.1:5001
In [3]: from pyquil import get_qc
...: get_qc("2q-noisy-qvm")
Out[3]: QuantumComputer[name="2q-noisy-qvm"]
Pre-Report Checklist
Issue Description
I am in a Python environment with Cirq and pyquil==3.5.4. This is the latest possible version of pyquil supported by cirq-rigetti at the moment, until this PR gets merged.
I spin up QVM & quilc servers from the Docker images (see commands below).
When I run
get_qc("2q-noisy-qvm")
I get an UnknownApiError.Is pyquil v3 still compatible with the QVM?
How to Reproduce
Code Snippet
Error Output
Environment Context
Operating System: macOS 14.3.1 (23D60)
Python Version (
python -V
): Python 3.11.8Quilc Version (
quilc --version
): 1.26.0 [7aef642]Version comes from:
QVM Version (
qvm --version
): 1.17.2 [266c11e]Version comes from:
Python Environment Details (
pip freeze
orconda list
): It's basically a fresh environment for https://github.com/unitaryfund/mitiq