-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hello,
I'm running the QRC Demo Aquila Submission.ipynb from the QRC_tutorials, and I've encountered an error that I need help resolving. When executing the following line of code:
task = build_task(QRC_parameters, xs[data, :]).parallelize(15).braket.aquila().run_async(shots=nshots, name="QRC_train_" + str(data))
I receive the following error message:
ValueError: Device does not support local detuning, but the program has a non-uniform spatial modulation for detuning.
After checking, I found that in the function generate_ahs_code, extra_sm is not None,
`extra_sm = set(level_couplings[sequence.rydberg][pulse.detuning]) - {field.Uniform}
if extra_sm:
if capabilities is not None and capabilities.capabilities.rydberg.local is None:
raise ValueError(
"Device does not support local detuning, but the program has a "
"non-uniform spatial modulation for detuning."
)`
so i need to check whether capabilities support local detunings. However, in the function to_quera_capabilities, local is set to None, which causes my code fail to run. I really don't know how to solve this problem and hope to seek some help.
- OS: Windows 11
- Bloqade Version: 0.15.14
- Python Version: 3.12.0