Problem Statement
You are given a real number . Implement the operation of preparing the state from the zero state on a quantum circuit with qubit.
The quantum state is defined as
Constraints
- In this problem, the state with different global phase will not be considered correct.
- The submitted code must follow the specified format: