Unitary¶
- class lightworks.Unitary(unitary: ndarray[tuple[int, ...], dtype[complex128]] | ParameterizedUnitary, label: str = 'U')¶
Bases:
PhotonicCircuit
Create a circuit which implements the target provided unitary across all of its modes.
- Parameters:
unitary (np.ndarray) – The target NxN unitary matrix which is to be implemented.