bloqade-python icon indicating copy to clipboard operation
bloqade-python copied to clipboard

Capability difference between braket() and not braket_local_simulator()

Open shsack opened this issue 2 years ago • 3 comments

The Rabi frequency at the beginning and end have to be zero. This error only happens when submitting to braket() and not on braket_local_simulator().

I think the same error should happen in both cases.

Screenshot 2023-07-17 at 2 10 26 PM

shsack avatar Jul 17 '23 18:07 shsack

This is not a bug this is a requirement for using Aquila via braket. The emulator will always have different restrictions compared to the actual hardware. You should design your pulse sequence to be compatible with the hardware.

weinbe58 avatar Jul 17 '23 18:07 weinbe58

Ok, but perhaps a warning could help? I could imagine a user (like myself) performing simulations first before going on hardware and then being surprised that the simulations are actually not realistic since a parameter range was explored that is not compatible with hardware.

shsack avatar Jul 17 '23 18:07 shsack

A warning makes sense, as this SDK is not a general-purpose emulator, the emulator should only do what hardware does without warns/errors, and it should happen when Emit is called, this requirement is also worth mentioning in docstring and documentation.

Roger-luo avatar Jul 17 '23 18:07 Roger-luo