Exercises are problems that you have to solve by writing Q# code. In each exercise, you'll be presented with placeholder code that you'll have to fill in with the correct solution.
**Input:** A qubit in the $\ket{0}$ state.
**Goal:** Apply the X gate to the qubit, that is, perform a "bit flip" to set the qubit into the $\ket{1}$ 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 fromhttps://github.com/microsoft/qdkAvailable
katas/content/getting_started/flip_qubit/index.md
10lines · modepreview