Hi, I couldn’t get the code snippet to work using the scale method shown for the local detuning set up in this page Advanced Usage - The Neutral Atom SDK. Code block
from bloqade import start
program = (
start.add_position([(0, 0), (0, 5)])
.rydberg.detuning.scale("local_detuning")
.piecewise_linear([0.1, 1.0, 0.1], [0, "detuning", "detuning", 0])
.amplitude.uniform.piecewise_linear([0.1, 1.0, 0.1], [0, 15, 15, 0])
.args(["local_detuning", "detuning"])
.bloqade.python()
)
local_detuning = [0.4, 0.1]
program.run(100, args=(*local_detuning, 30))
I find this value error:
Expected 2 arguments, got 3.
Can you please provide some references where I may learn about the local detuning set up with python SDK?