milesgep / Quantum-Reinforcement-Learning

Implementation of QRL
28 stars 11 forks source link

Version of qiskit #1

Open raywu0123 opened 5 years ago

raywu0123 commented 5 years ago

I got this error while running your program quantumGridWorld

Traceback (most recent call last):
  File "quantumGridWorld.py", line 237, in <module>
    Q, stats, memory = q_learning(env, 500)
  File "quantumGridWorld.py", line 206, in q_learning
    action = collapseActionSelectionMethod(Q_program, eigenAction, qr, cr)
  File "quantumGridWorld.py", line 129, in collapseActionSelectionMethod
    classical_state = result['classical_state']
KeyError: 'classical_state'

I think its a problem with qiskit 's version. Would you be so kind to tell me which version you are using ?

erdisayar commented 3 years ago

I think they are the versions pip install qiskit==0.5.7 pip install networkx==2.3