1 Answer
- Newest
- Most votes
- Most comments
1
Hi there, in PennyLane the number of shots is specified in qml.device, in your example something like
dev = qml.device("braket.aws.qubit", device_arn='arn:aws:braket:eu-north-1::device/qpu/iqm/Garnet', wires=n_qubits, *shots=10*)
With Hybrid Jobs you can run your algorithm script on a classical instance managed by Braket (instead of on your laptop for instance). The reason you pass the device ARN into the AwsQuantumJob call is to ensure your job will have priority access (meaning each task from your algorithm will jump to the front of the queue) to the device for the duration of your algorithm. But you don't need to specify any details, such as, shots at that point.
answered 2 years ago
Relevant content
asked 2 years ago

Thanks for the reply. I still don't quite understand why the error occurs when I switch to an IQM device. My dictionary ´device_parameters´ contains a shot number declaration and there shouldn't be any difference to your example as ** simply unpacks the dict as keyword arguments.