Problem Statement
Implement the operation defined by the following matrix on a quantum circuit with qubit.
Constraints
- In this problem, the state with different global phase will not be considered correct.
- The submitted code must follow the specified format:
Hints
Open
A quantum state can be represented as a column vector
The adjoint of a quantum state is defined as
For quantum states and , the inner product is defined as
Manipulating a quantum state is equivalent to multiplying a column vector by a unitary matrix from the left.
The outer product of quantum states and is defined as
For arbitrary quantum state , the following equation holds: