UNPKG

highlightjs-qsharp

Version:

highlight.js syntax definition for Microsoft's Q# language

12 lines (10 loc) 268 B
namespace Microsoft.Quantum.Samples { open Microsoft.Quantum.Canon; open Microsoft.Quantum.Intrinsic @EntryPoint() operation MeasureOneQubit() : Result { use qubit = Qubit(); H(qubit); return MResetZ(qubit); } }