microsoft/qdk

Public

mirrored from https://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/deutsch_algo/implement_algo/index.md

4lines · modepreview

**Input:** The "black box" oracle the implements $f(x)$, defined as an operation that takes a single qubit as an argument and returns `Unit`.

**Goal:** Return `true` if the function is constant ($f(0) = f(1)$), or `false` if it is variable ($f(0) \neq f(1)$).
You can use only one oracle call!