[ ] I am running the latest versions of pyQuil and the Forest SDK
[ ] I checked to make sure that this bug has not already been reported
Issue Description
I have installed the quilc and qvm locally according to the [Rigetti’s guide on installing the Quil SDK locally].
After running quilc and qvm, I ran the code in the user guide. Then I met the error ModuleNotFoundError: No module named 'typing_extensions'.
How to Reproduce
Code Snippet
from pyquil import Program, get_qc
from pyquil.gates import *
from pyquil.quilbase import Declare
p = Program(
Declare("ro", "BIT", 2),
H(0),
CNOT(0, 1),
MEASURE(0, ("ro", 0)),
MEASURE(1, ("ro", 1)),
).wrap_in_numshots_loop(10)
# run the program on a QVM
qc = get_qc('9q-square-qvm')
result = qc.run(qc.compile(p)).get_register_map().get("ro")
print(result[0])
print(result[1])
Error Output
Traceback (most recent call last):
File "C:\Users\dsliu\Documents\Projects\Quantum Machine Learing\pyquil\get_started.py", line 1, in <module>
from pyquil import Program, get_qc
File "C:\Users\dsliu\miniconda3\envs\pyquil\lib\site-packages\pyquil\__init__.py", line 2, in <module>
from pyquil.quil import Program
File "C:\Users\dsliu\miniconda3\envs\pyquil\lib\site-packages\pyquil\quil.py", line 46, in <module>
from pyquil.control_flow_graph import ControlFlowGraph
File "C:\Users\dsliu\miniconda3\envs\pyquil\lib\site-packages\pyquil\control_flow_graph.py", line 2, in <module>
from typing_extensions import Self, override
ModuleNotFoundError: No module named 'typing_extensions'
Environment Context
Operating System: Windows 10Pro for Workstations 22H2
Python Version (python -V): 3.10.14
Quilc Version (quilc --version): 1.23.0 [e6c0939]
QVM Version (qvm --version): 1.17.1 [cf3f91f]
Python Environment Details (pip freeze or conda list):
Pre-Report Checklist
Issue Description
I have installed the quilc and qvm locally according to the [Rigetti’s guide on installing the Quil SDK locally].
After running quilc and qvm, I ran the code in the user guide. Then I met the error
ModuleNotFoundError: No module named 'typing_extensions'
.How to Reproduce
Code Snippet
Error Output
Environment Context
Operating System: Windows 10Pro for Workstations 22H2
Python Version (
python -V
): 3.10.14Quilc Version (
quilc --version
): 1.23.0 [e6c0939]QVM Version (
qvm --version
): 1.17.1 [cf3f91f]Python Environment Details (
pip freeze
orconda list
):