AgnostiqHQ / covalent

Pythonic tool for orchestrating machine-learning/high performance/quantum-computing workflows in heterogeneous compute environments.
https://www.covalent.xyz
Apache License 2.0
775 stars 92 forks source link

The default Dask serialization protocol fails when using Pennylane's QAOA optimizer. #698

Closed Emmanuel289 closed 1 year ago

Emmanuel289 commented 2 years ago

Environment

What is happening?

The default Dask serialization protocol fails when using Pennylane's QAOA optimizer. Thus electrons that call the QAOA optimizer currently have to be executed with the Local Executor.

How can we reproduce the issue?

A workflow/electron that uses Pennylane's QAOA optimizer will fail execution when dispatched to the Covalent server.

What should happen?

Dask should properly serialize objects in electrons that use the QAOA optimizer.

Any suggestions?

No response

cjao commented 2 years ago

Does setting serializers=["pickle"] help?