pasqal-io / Pulser

Library for pulse-level/analog control of neutral atom devices. Emulator with QuTiP.
Apache License 2.0
159 stars 57 forks source link

Wait option for Backend.run( ) function #596

Closed LucasGitQ closed 8 months ago

LucasGitQ commented 8 months ago

Hello ! In the Cloud SDK, there is an option wait in sdk.create_batch. Setting wait = True keeps your code running until the results are available on the Cloud platform (i.e. batch is marked as Done). It is very useful to build a continuous communication loop between a local computer and the distant Emulator/QPU. It is possible to make the code artificially wait but since the option is already in the Cloud SDK and that the Backend objects are wrappers around that, I feel like it would be useful and easy to keep that argument. Thank you a lot !