Embedded simulators - Amazon Braket

Embedded simulators

Embedded simulators work by having the simulation embedded with the algorithm code in the same container and executing the simulation on the hybrid job instance directly. This can be useful for removing bottlenecks associated with having the simulation communicate with a remote device. This can result in significantly lower memory usage, reduced number of circuit executions to achieve a desired result, and an improved performance of ten times or more. For more information about embedded simulators, see the Run a hybrid job with Amazon Braket Hybrid Jobs page.

PennyLane’s lightning simulators

You can use PennyLane’s lightning simulators as embedded simulators on Braket. With PennyLane’s lightning simulators, you can leverage advanced gradient computation methods, such as adjoint differentiation, to evaluate gradients faster. The lightning.qubit simulator is available as a device through Braket NBIs and as an embedded simulator, whereas the lightning.gpu simulator needs to be run as an embedded simulator with a GPU instance. See the Embedded simulators in Braket Hybrid Jobs notebook for an example of using lightning.gpu.