The most general quantum black box is a unitary operator
The adjoint is shorthand for the complex conjugate of each matrix entry, followed by the transpose,
Write a function which checks if an array of complex numbers is unitary.
Tip. You will find the
np.identity
,
np.allclose
,
np.conjugate
and
np.transpose
methods useful.
To interact with codercises, please switch to a larger screen size.
Learning Objectives: