microsoft/qdk

Public

mirrored from https://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
brlackey/ising-model-sample

Branches

Tags

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

Clone

HTTPS

Download ZIP

source/npm/qsharp/test/circuits-cases/functors.qs

19lines · modecode

1operation Main() : Result[] {
2 use q = Qubit();
3 Foo(q);
4 Adjoint Foo(q);
5 [MResetZ(q)]
6}
7
8operation Foo(q : Qubit) : Unit is Adj + Ctl {
9
10 body (...) {
11 X(q);
12 }
13
14 adjoint (...) {
15 Y(q);
16 }
17
18 controlled (cs, ...) {}
19}
20