sf.program_utils¶
Warning
Unless you are a Strawberry Fields developer, you likely do not need to use these classes directly.
See the general Program
class for
details on creating a Strawberry Fields program.
This module contains various utility classes and functions used
within the Program
class.
Functions¶
|
Transforms a list of Commands to a grid representation. |
|
Transforms a grid of Commands to a DAG representation. |
|
Transforms a Command DAG to a list representation. |
|
Transforms a list of Commands to a DAG representation. |
|
Group a set of Operations in a circuit together (if possible). |
|
Try to simplify and optimize a quantum circuit. |
Classes¶
Exception raised by |
|
Exception raised by |
|
Exception raised by |
|
|
Represents a quantum operation applied on specific subsystems of the register. |
|
Quantum register reference. |
Variables¶
Context for inputting a Program. |