Exercises are problems that you have to solve by writing Q# code. In each exercise, you will be presented with placeholder code that you will have to fill in with the correct solution.
**Input:** A qubit in the $|0\rangle$ state.
**Goal:** Apply the X gate to the qubit, i.e., perform a "bit flip" to set the qubit into the $|1\rangle$ state.
<details>
<summary><strong>Need a hint?</strong></summary>
For some problems a hint will be provided to help you if you are stuck. For this exercise, read line number 3 in the code below.
</details>microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
katas/content/getting_started/flip_qubit/index.md
10lines · modepreview