photonic_circuit_solver.supplementalfuncs
Adding test and utility functions built by Tarek Razzaz. Almost all functions require additional optional packages beyond just NumPy
Functions
|
Apply an RZ gate via SymPy (requires SymPy) |
|
Apply an RZ gate via SymPy (requires SymPy) |
|
Apply an RZ gate via SymPy (requires SymPy) |
|
Simplifies an expression describing a SymPy statevector |
|
Removes the global phase from a SymPy statevector by dividing by the phase of the first component (Requires SymPy) |
|
Computes the tensor product of two SymPy statevectors (not fully tested) (requires SymPy) |
Classes
|
This is a class that encodes graphs, and contains a few convenient functions (most useful methods require optional packages) |