1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
%%
%% This is file `qsharp.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% qsharp.dtx (with options: `package')
%%
%% This is a generated file.
%%
%% TODO: license header
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{qsharp}
[2019/01/14 v0.3.1901.1401 Initial public version.]
\usepackage{listings}
\usepackage{xcolor}
\newcommand{\qs}{Q\#}
\definecolor{cud-reddish-purple}{RGB}{204,121,167}
\colorlet{doc-comment}{cud-reddish-purple!60!black}
\makeatletter
\lstdefinelanguage{QSharp}{
morekeywords={
namespace,
open,
operation,
function,
body,
adjoint,
auto,
controlled,
let,
set,
mutable,
using,
borrowing,
Adjoint,
Qubit, Unit,
Zero, One
},
% Define built-in primitives as second-order keywords.
morekeywords=[2]{H, CNOT, I, X, Y, Z, Message},
sensitive=true,
morecomment=[l]{//},
morecomment=[l][\lst@commentstyle\color{doc-comment}]{///}
}
\makeatother
\lstdefinestyle{QSharp}{
language=QSharp,
mathescape=true
}
\endinput
%%
%% End of file `qsharp.sty'.
|