amazon-braket / amazon-braket-examples

Example notebooks that show how to apply quantum computing with Amazon Braket.
https://aws.amazon.com/braket/
Apache License 2.0
472 stars 226 forks source link

VQE example is broken due to SDK mismatch in Braket notebooks #138

Closed math411 closed 2 years ago

math411 commented 2 years ago

Currently, the VQE Chemistry example notebook uses FreeParameter in the notebook. The SDK in notebooks uses an older version than where FreeParameter occurs. Long term fix is being worked on internally.

Short term fix: under the Imports and setup cell, you can change it to read::

# create a directory named "data" to store intermediate classical computation results from OpenFermion
!mkdir -p "data"
!pip install amazon-braket-sdk==1.17.0
!pip show amazon-braket-sdk
math411 commented 2 years ago

Issue has been fixed with newest notebooks.

Recommendation: Customers to stop-start their notebooks to pull in the latest changes.