Problem Statement
Implement the operation of preparing the state from the zero state on a quantum circuit with qubits.
The state is defined as
where , , and denote arbitrary non-zero probability amplitudes (any values are permitted).
Constraints
- Changes in the global phase are ignored.
- The submitted code must follow the specified format: