summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/qm.sty
blob: 16c3413e8230263f3edc5a4969553e8adfea25e1 (plain)
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
% *****************************  QM.STY *****************************  
% Version 1.1
% 25.5.1994
% 
% Commands for Bras, Kets, and the like. The commands are working in 
% textmode and mathmode. 
%
% Since Version 1.1 of this style the arguments of all commands are set to 
% mathmode; e.g. you don't have to write \bra{$\Phi$} but only \bra{\Phi}.
% 
% Written by: 
% Norbert Christlieb 
% Heussweg 102 
% 20255 Hamburg 
% Germany 
% E-Mail: norbert@philosophie.uni-hamburg.de 
%
% *******************************************
\def\fileversion{1.1}
\def\filedate{May 25, 1994}
\typeout{Style Option `qm' Version\space\fileversion\space<\filedate>
 (NC) }

% Command for Bras. Example: with "\bra{1}" you get "<1|".
\newcommand{\bra}[1]{\mbox{\rm \raisebox{0.15ex}[-0.15ex]{$<$}$#1$ 
   \kern-.20em \vrule width.025em height1.6ex depth 0ex}}             

% \ket{1}: |1>
\newcommand{\ket}[1]{\mbox{\rm \vrule width.025em height1.6ex 
  depth 0ex \kern.15em $#1$\raisebox{0.15ex}[-0.15ex]{$>$}}}             

% \bracket{1}{2}: <1|2>
\newcommand{\bracket}[2]{\mbox{\rm \raisebox{0.15ex}[-0.15ex]{$<$}$#1$ 
   \kern-.20em \vrule width.025em height1.6ex depth 0ex \kern.20em 
   $#2$\raisebox{0.15ex}[-0.15ex]{$>$}}}             

% \expvalue{1}{2}{3}: <1|2|3>
\newcommand{\expvalue}[3]{\mbox{\rm \raisebox{0.15ex}[-0.15ex]{$<$}$#1$ 
   \kern-.20em \vrule width.025em height1.6ex depth 0ex \kern.20em $#2$ 
   \kern-.20em \vrule width.025em height1.6ex depth 0ex \kern.15em 
   $#3$\raisebox{0.15ex}[-0.15ex]{$>$}}}             

% Operator of the identity: \identop
\def\identop{\mbox{\tt \large \kern.45em \vrule width.02em height1.35ex 
  depth 0ex \kern-.19em 1}}

% Adjoint Operator
\newcommand{\adjoint}[1]{\mbox{$#1^{\mbox{\scriptsize \dag}}$}}