microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/replace-qsharp-with-qdk-python-tests

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

katas/content/getting_started/flip_qubit/solution.md

8lines · modepreview

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.

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.

@[solution]({
    "id": "getting_started__flip_qubit_solution",
    "codePath": "./Solution.qs"
})