Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Device does not support local detuning in QRC Demo Aquila Submission.ipynb #995

Open
Dirtydan1013 opened this issue Oct 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Dirtydan1013
Copy link

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
@Dirtydan1013 Dirtydan1013 added the bug Something isn't working label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant