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/Solution.qs

9lines · modecode

1namespace Kata {
2 operation DeutschAlgorithm (oracle : Qubit => Unit) : Bool {
3 use x = Qubit();
4 H(x);
5 oracle(x);
6 H(x);
7 return MResetZ(x) == Zero;
8 }
9}
10