Skip to content

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

@Dirtydan1013

Description

@Dirtydan1013

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions