10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-11-06 22:23:42 +01:00

Added tikz files

This commit is contained in:
Anthony Scemama 2020-07-01 09:29:09 +02:00
parent 6ec018b89c
commit a5c4851814
14 changed files with 616 additions and 0 deletions

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updna{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\dn{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updna{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\dnb{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\updnab{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updna{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\dn{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\upa{\XX}{1.0}
\dn{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\dnb{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\dnb{\XX}{1.0}
\upa{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\dnb{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\dnb{\XX}{1.0}
\upa{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\dnb{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\dnb{\XX}{1.5}
\emp{\XX}{1.0}
\upa{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\updnab{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\dnb{\XX}{1.0}
\upa{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\dnb{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\updnab{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\dnb{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\updnab{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\dnb{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\dnb{\XX}{1.5}
\upa{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updn{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\updnab{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\updnab{\XX}{1.0}
\emp{\XX}{0.5}
\updn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,37 @@
\begin{tikzpicture}
\input{Electrons.tikz}
% Det |I>
\renewcommand{\XX}{\XI}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\emp{\XX}{1.5}
\emp{\XX}{1.0}
\updnab{\XX}{0.5}
\updnc{\XX}{0.}
% Det |alpha>
\renewcommand{\XX}{\XA}
\cabs{
\emp{\XX}{2.5}
\upa{\XX}{2.0}
}
\emp{\XX}{1.5}
\dnb{\XX}{1.0}
\emp{\XX}{0.5}
\updnc{\XX}{0.}
% Det |J>
\renewcommand{\XX}{\XJ}
\cabs{
\emp{\XX}{2.5}
\emp{\XX}{2.0}
}
\upa{\XX}{1.5}
\updncb{\XX}{1.0}
\emp{\XX}{0.5}
\dn{\XX}{0.}
\end{tikzpicture}

View File

@ -0,0 +1,135 @@
% Documentation
% -------------
%
% \up : up electron (black)
% \upr : up electron (red)
% \dn : down electron (black)
% \dnr : down electron (red)
% \updn : up electron (black), down electron (black)
% \updnrr : up electron (red ), down electron (red )
% \updnrb : up electron (red ), down electron (black)
% \updnbr : up electron (black), down electron (red )
% \emp : empty orbital
% \cabs{ } : CABS space inside
%
% Example
% -------
%
% \input{Electrons.tikz}
%
% \cabs{
% \emp{0.}{2.0}
% \emp{0.}{1.5}
% }
% \emp{0.}{1.0}
% \updnrb{0.}{0.5}
% \updn{0.}{0.}
%
% Electron symbol
\newcommand{\upel}{$\uparrow$}
\newcommand{\dnel}{$\downarrow$}
% Colors
\newcommand{\cabs}[1]{ { \color{lightgray}{#1} } }
\newcommand{\obs}[1]{ { \color{black}{#1} } }
\newcommand{\exca}[1]{ { \color{red}{#1} } }
\newcommand{\excb}[1]{ { \color{Cyan}{#1} } }
\newcommand{\excc}[1]{ { \color{Green}{#1} } }
\newcommand{\noexc}[1]{{ \color{black}{#1} } }
% Spacing between the 3 diagrams
\newcommand{\XI}{-1.}
\newcommand{\XA}{0.}
\newcommand{\XJ}{1.}
% Up electron
\newcommand{\up}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1-0.1,#2) {\noexc{\upel}};
}
\newcommand{\upa}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1-0.1,#2) {\exca{\upel}};
}
\newcommand{\upb}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1-0.1,#2) {\excb{\upel}};
}
\newcommand{\upc}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1-0.1,#2) {\excc{\upel}};
}
% Down electron
\newcommand{\dn}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1+0.1,#2) {\noexc{\dnel}};
}
\newcommand{\dna}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1+0.1,#2) {\exca{\dnel}};
}
\newcommand{\dnb}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1+0.1,#2) {\excb{\dnel}};
}
\newcommand{\dnc}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1+0.1,#2) {\excc{\dnel}};
}
% Up and Down electrons
\newcommand{\updn}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1+0.1,#2) {\noexc{\dnel}};
\node at (#1-0.1,#2) {\noexc{\upel}};
}
\newcommand{\updnab}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1+0.1,#2) {\excb{\dnel}};
\node at (#1-0.1,#2) {\exca{\upel}};
}
\newcommand{\updncb}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1+0.1,#2) {\excb{\dnel}};
\node at (#1-0.1,#2) {\excc{\upel}};
}
\newcommand{\updna}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1+0.1,#2) {\noexc{\dnel}};
\node at (#1-0.1,#2) {\exca{\upel}};
}
\newcommand{\updnb}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1-0.1,#2) {\noexc{\upel}};
\node at (#1+0.1,#2) {\excb{\dnel}};
}
\newcommand{\updnc}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
\node at (#1+0.1,#2) {\noexc{\dnel}};
\node at (#1-0.1,#2) {\excc{\upel}};
}
% Empty orbital
\newcommand{\emp}[2]{
\draw [-,thick] (-0.2+#1,#2) -- (0.2+#1,#2);
}
% Determinant label
\node at (\XI,-0.7) {$\ket{I}$};
\node at (\XA,-0.7) {$\ket{\alpha}$};
\node at (\XJ,-0.7) {$\ket{J}$};
\newcommand{\XX}{0.}