unitaria.ConstantUnitary¶
- class unitaria.ConstantUnitary(unitary: ndarray)[source]¶
Bases:
NodeNode representing the given unitary
Can also be a rectangular matrix with orthonormal columns, i.e. a matrix V such that either $V^dag V$ or $V V^dag$ is unitary.
- Parameters:
unitary – The unitary which should be implemented
- Raises:
ValueError – If the provided matrix is not unitary.