quantum_tsp_tutorials
quantum_tsp_tutorials copied to clipboard
dependency packages error?
Hi, I was running through you example QAOA.ipynb, and ran into error:
module 'pyquil.api' has no attribute 'QVMConnection'
so I downgraded pyquil to 2.1.1 as you mentioned. And then got the stack trace below.
Was wondering if there is a specific python version and forest SDK version i need to run?
(I also had issues getting forest to install, so i just ran the docker (https://docs.rigetti.com/qcs/getting-started/forest-docker-image))
using this command: docker run --rm -it rigetti/forest
`---------------------------------------------------------------------------
Exception Traceback (most recent call last)
~/miniconda3/lib/python3.9/site-packages/grove/pyqaoa/maxcut_qaoa.py in
~/miniconda3/lib/python3.9/site-packages/pyquil/init.py in
~/miniconda3/lib/python3.9/site-packages/pyquil/quil.py in
~/miniconda3/lib/python3.9/site-packages/pyquil/_parser/PyQuilListener.py in
~/miniconda3/lib/python3.9/site-packages/pyquil/_parser/gen3/QuilLexer.py in
~/miniconda3/lib/python3.9/site-packages/pyquil/_parser/gen3/QuilLexer.py in QuilLexer() 224 class QuilLexer(Lexer): 225 --> 226 atn = ATNDeserializer().deserialize(serializedATN()) 227 228 decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]
~/miniconda3/lib/python3.9/site-packages/antlr4/atn/ATNDeserializer.py in deserialize(self, data) 26 self.data = data 27 self.pos = 0 ---> 28 self.checkVersion() 29 atn = self.readATN() 30 self.readStates(atn)
~/miniconda3/lib/python3.9/site-packages/antlr4/atn/ATNDeserializer.py in checkVersion(self) 48 version = self.readInt() 49 if version != SERIALIZED_VERSION: ---> 50 raise Exception("Could not deserialize ATN with version " + str(version) + " (expected " + str(SERIALIZED_VERSION) + ").") 51 52 def readATN(self):
Exception: Could not deserialize ATN with version (expected 4).`