-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When trying to submit jobs to Aquila from local machine, the same error keeps occurring:
ClientError: An error occurred (InvalidSignatureException) when calling the BatchGetImage operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
This is despite the credentials being double checked to be correct in content and format. Same code runs fine through BraKet
Minimal broken example
import numpy as np
import bloqade
from bloqade.analog.atom_arrangement import ListOfLocations
positions=[(0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 1), (2, 2)]
list_pos = [(pos[0]*4, pos[1]*4) for pos in positions]
omega_durations = [0.2, 3.8, 4. ]
omega_values = [ 0. , 14.0156269, 14.0156269, 0. ]
delta_durations = [0.44444444, 0.88888889, 1.33333333, 1.77777778,
2.22222222, 2.66666667, 3.11111111, 3.55555556, 4. ]
delta_values = [-68.06743978, -45.12540387, -35.02756675, -23.67799358,
-8.41418342, 3.86078473, 17.87360112, 33.2705692 ,
51.94891257, 74.07616608]
job = (
ListOfLocations(list_pos)
.rydberg.rabi.amplitude.uniform.piecewise_linear(omega_durations, omega_values)
.detuning.uniform.piecewise_linear(
delta_durations, delta_values
)
)
from braket.devices import Devices
from braket.jobs import hybrid_job
import os
%env AWS_ACCESS_KEY_ID = CANNOT_SHARE_HERE
%env AWS_SECRET_ACCESS_KEY = CANNOT_SHARE_HERE_BUT_LONGER
%env AWS_DEFAULT_REGION = us-east-1
@hybrid_job(device=Devices.QuEra.Aquila, dependencies="./reqs.txt")
def your_job():
return job.braket.aquila().run(100).report()
Expected behavior
Expected to run submitted jobs on Aquila and retrieve report
Desktop (please complete the following information):
- OS: OSX
- Bloqade Version: 0.26.0
- Python Version: 3.10.18
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working