microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
katas/content/getting_started/flip_qubit/solution.md
8lines · modecode
| 1 | Once you've successfully implemented a solution or if you're stuck on a problem, you can consult the reference solution, which contains additional details on how to solve the exercise. |
| 2 | |
| 3 | For this exercise, you can solve the problem by simply using Q#'s `X` operation on the input qubit, which will perform a "bit flip" and set the qubit into the $\ket{1}$ state. |
| 4 | |
| 5 | @[solution]({ |
| 6 | "id": "getting_started__flip_qubit_solution", |
| 7 | "codePath": "./Solution.qs" |
| 8 | }) |
| 9 | |