yskmt2018 / quantum2020

Examples of solving major optimization problems using (simulated) quantum annealing.
MIT License
4 stars 1 forks source link

Question on the version of pyqubo; [AttributeError: 'cpp_pyqubo.Model' object has no attribute 'decode_solution'] #1

Open geeknco opened 1 year ago

geeknco commented 1 year ago

Hi, when running _vehicle_routing_problem.ipynb, I encoutered an error of AttributeError: 'cpp_pyqubo.Model' object has no attribute 'decode_solution'_. I think it might be due to the wrong version of pyqubo, so could you kindly tell me which version of pyqubo you used. Could you please provide the full dependencies list to run your code? Thanks a lot!

yskmt2018 commented 1 year ago

Sorry, I created this script using Google Colaboratory at the time, so I don't know about the library dependencies. However, based on when the script was written and PyPI's release history, PyQUBO's version is probably 0.40 (very old...).

geeknco commented 1 year ago

I have tried the PyQUBO version of 0.4.0 but the error still exists QAQ. Anyway, thanks for your quick response~