Skip to content

bloqade.analog.builder.backend.braket.BraketDeviceRoute

← Module overview

classBraketDeviceRoutesource

bloqade.analog.builder.backend.braket.BraketDeviceRoute

Bases: Builder

class BraketDeviceRoute

methoddevicesource

bloqade.analog.builder.backend.braket.BraketDeviceRoute.device

def device(device_arn) -> BraketHardwareRoutine

Specify QPU based on the device ARN on Braket to submit your program to.

The number of shots you specify in the subsequent .run method will either:

  • dictate the number of times your program is run

  • dictate the number of times per parameter your program is run if you have a variable with batch assignments/intend to conduct a parameter sweep

  • Possible next steps are:

    • ...device(arn).run(shots): To submit to hardware and WAIT for results (blocking)
    • ...device(arn).run_async(shots): To submit to hardware and immediately allow for other operations to occur

Parameters

NameTypeDescription
device_arn—

Returns

BraketHardwareRoutine

source

methodaquilasource

bloqade.analog.builder.backend.braket.BraketDeviceRoute.aquila

def aquila() -> BraketHardwareRoutine

Specify QuEra’s Aquila QPU on Braket to submit your program to.

The number of shots you specify in the subsequent .run method will either:

  • dictate the number of times your program is run

  • dictate the number of times per parameter your program is run if you have a variable with batch assignments/intend to conduct a parameter sweep

  • Possible next steps are:

    • ...aquila().run(shots): To submit to hardware and WAIT for results (blocking)
    • ...aquila().run_async(shots): To submit to hardware and immediately allow for other operations to occur

Returns

BraketHardwareRoutine

source

methodlocal_emulatorsource

bloqade.analog.builder.backend.braket.BraketDeviceRoute.local_emulator

def local_emulator() -> BraketLocalEmulatorRoutine

Specify the Braket local emulator to submit your program to.

  • The number of shots you specify in the subsequent .run method will either:
    • dictate the number of times your program is run
    • dictate the number of times per parameter your program is run if you have a variable with batch assignments/intend to conduct a parameter sweep
  • Possible next steps are:
    • ...local_emulator().run(shots): to submit to the emulator and await results

Returns

BraketLocalEmulatorRoutine

source