Open licedric opened 1 month ago
Error comes from sending the lightning.qubit
device as an argument to pool.map
for multiprocessing: https://github.com/amazon-braket/amazon-braket-algorithm-library/blob/a1895e212cc10bd747156ef491edfecc474561d5/src/braket/experimental/algorithms/qc_qmc/qc_qmc.py#L71
At some point the lightning.qubit
device became unpicklable: https://discuss.pennylane.ai/t/qml-device-error-with-qiskit-aer/4556/7
Monkey-patching around this allows the notebook to run, so it's confirmed that this is the issue.
Describe the bug The qc_qmc notebook fails if run as-is with the following stack trace:
To reproduce I created a new Braket NBI with default settings and ran the notebook.
Expected behavior The code should execute without errors.
Screenshots or logs If applicable, add screenshots or logs to help explain your problem.
System information A description of your system. Please provide:
Additional context