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/index.md

10lines · modepreview

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>