pennylane-sf

This section contains the API documentation for the PennyLane-SF plugin.

Warning

Unless you are a PennyLane plugin developer, you likely do not need to use these classes and functions directly.

See the overview page for more details using the available Strawberry Field devices with PennyLane.

Top level PennyLane-SF module.

Classes

StrawberryFieldsFock(wires, *[, shots, hbar])

StrawberryFields Fock device for PennyLane.

StrawberryFieldsGBS(wires, *[, shots, …])

StrawberryFields variational GBS device for PennyLane.

StrawberryFieldsGaussian(wires, *[, shots, …])

StrawberryFields Gaussian device for PennyLane.

StrawberryFieldsRemote(*, backend[, wires, …])

StrawberryFields remote device for PennyLane.

Class Inheritance Diagram

digraph inheritance503cd7635b { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [color=lightskyblue1,fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style=filled,tooltip="Helper class that provides a standard way to create an ABC using"]; "Device" [color=lightskyblue1,fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style=filled,tooltip="Abstract base class for PennyLane devices."]; "ABC" -> "Device" [arrowsize=0.5,style="setlinewidth(0.5)"]; "StrawberryFieldsFock" [color=lightskyblue1,fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style=filled,tooltip="StrawberryFields Fock device for PennyLane."]; "StrawberryFieldsSimulator" -> "StrawberryFieldsFock" [arrowsize=0.5,style="setlinewidth(0.5)"]; "StrawberryFieldsGBS" [color=lightskyblue1,fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style=filled,tooltip="StrawberryFields variational GBS device for PennyLane."]; "StrawberryFieldsSimulator" -> "StrawberryFieldsGBS" [arrowsize=0.5,style="setlinewidth(0.5)"]; "StrawberryFieldsGaussian" [color=lightskyblue1,fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style=filled,tooltip="StrawberryFields Gaussian device for PennyLane."]; "StrawberryFieldsSimulator" -> "StrawberryFieldsGaussian" [arrowsize=0.5,style="setlinewidth(0.5)"]; "StrawberryFieldsRemote" [color=lightskyblue1,fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style=filled,tooltip="StrawberryFields remote device for PennyLane."]; "StrawberryFieldsSimulator" -> "StrawberryFieldsRemote" [arrowsize=0.5,style="setlinewidth(0.5)"]; "StrawberryFieldsSimulator" [color=lightskyblue1,fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style=filled,tooltip="Abstract StrawberryFields simulator device for PennyLane."]; "Device" -> "StrawberryFieldsSimulator" [arrowsize=0.5,style="setlinewidth(0.5)"]; }