Unitary

class lightworks.Unitary(unitary: ndarray[Any, dtype[complex128]] | ParameterizedUnitary, label: str = 'U')

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.