sf.circuitdrawer

Warning

Unless you are a Strawberry Fields developer, you likely do not need to use these classes directly.

See the Program.draw_circuit method for details on converting a Strawberry Fields program to \(\LaTeX{}\).

A Strawberry Fields module that provides an object-oriented interface for building quantum circuit representations of continuous-variable circuits using the \(\LaTeX\) Qcircuit package.

Classes

Circuit(wires)

Represents a quantum circuit that can be compiled to tex format.

ModeMismatchException

Exception raised when parsing a Gate object.

NotDrawableException

Exception raised when a circuit is not drawable.

UnsupportedGateException

Exception raised when attempting to add an unsupported operator.