AWS braket documentation change
Summary
Added FreeParameter syntax clarification and modified code example parameters
Security assessment
The changes improve code examples for quantum computing pulse sequences but contain no security-related content or references to security features.
Diff
diff --git a/braket/latest/developerguide/braket-hello-pulse.md b/braket/latest/developerguide/braket-hello-pulse.md index bb3585508..7637b3979 100644 --- a//braket/latest/developerguide/braket-hello-pulse.md +++ b//braket/latest/developerguide/braket-hello-pulse.md @@ -32 +32 @@ The following pulse sequence includes two components: Playing a waveform and mea -Now, create the waveform that will play in the drive frame. The goal is to characterize the behavior of the qubits for different pulse lengths. You will play a waveform with different lengths each time. Instead of instantiating a new waveform each time, use the Braket-supported free parameter in pulse sequence. You are able to create the waveform and the pulse sequence once with a free parameters, and then run the same pulse sequence with different input values. +Now, create the waveform that will play in the drive frame. The goal is to characterize the behavior of the qubits for different pulse lengths. You will play a waveform with different lengths each time. Instead of instantiating a new waveform each time, use the Braket-supported `FreeParameter` in pulse sequence. You are able to create the waveform and the pulse sequence once with a free parameters, and then run the same pulse sequence with different input values. @@ -51,0 +52 @@ Scan across a range of pulse length and submit them to the QPU. + N_shots = 100 @@ -54 +55 @@ Scan across a range of pulse length and submit them to the QPU. - device.run(pulse_sequence, shots=100, inputs={"length": length}) + device.run(pulse_sequence(length=length), shots=N_shots)