microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.14.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

samples/notebooks/test_project/src/Sample.qs

11lines · modepreview

namespace Sample {
    operation Main() : Result {
        use q = Qubit();
        X(q);
        Std.Diagnostics.DumpMachine();
        let r = M(q);
        Message($"The result of the measurement is {r}");
        Reset(q);
        r
    }
}