ScQ-Cloud / pyquafu

PyQuafu is designed for users to construct, compile, and execute quantum circuits on quantum devices on Quafu using Python.
Apache License 2.0
65 stars 23 forks source link

Submit tasks asynchronously for VQA applications using real machine #187

Closed Zhaoyilunnn closed 1 month ago

Zhaoyilunnn commented 1 month ago

https://github.com/ScQ-Cloud/pyquafu/blob/5c78be391252f93269fd1b7a4016aadce33b09d8/quafu/tasks/tasks.py#L165

Now submit api will submit tasks synchronously. If the application needs a long runtime (e.g., days), it will be very likely that the program crashes for some connection errors.