I need to draw this (likely very simple) diagram shown in the image but I've never used Tikz before.
My problem is basiclly how to draw these vertical dotted lines and mainly arrange the math in blocks like this with these arrows pointing from one to the other - of course I have no problem writing the math, the needed structure is giving me problems. Any help would be very appreciated. Thanks in advance.
So far I was able to do this. I feel I'm almost there, but having problems with alignments. Any help?
\begin{tikzpicture}[square/.style={regular polygon,regular polygon sides=4}]
%Draw dashed lines
\draw [dashed] (2.5,0) -- (2.5,2);
\draw [dashed] (5,0) -- (5,2);
\draw [dashed] (7.5,0) -- (7.5,2);
%Draw nodes of equations
\node at (1.25,1) [square,inner sep=-1.3em, draw] {
$\begin{aligned}
\vert \Psi \rangle &= \sum_{i}{c_i \vert a_i \rangle},\\
&\sum_{i}{\vert a_i \rangle \langle a_i \vert} = \mathds{1}
\end{aligned}$
};
\node at (3.75,1) [square,inner sep=-1.3em, draw] {};
\node at (6.25,1) [square,inner sep=-1.3em, draw] {};
%Draw title nodes
\node at (1.25,2) [square,inner sep=-1.3em, draw] {$\left( \mathcal{H}, \langle \cdot \vert \cdot \rangle \right)$};
\node at (3.75,2) [square,inner sep=-1.3em, draw] {$\left( \mathcal{H}_{Phys}, \langle \cdot \vert \cdot \rangle _{\eta _{+}} \right)$};
\node at (6.25,2) [square,inner sep=-1.3em, draw] {$\left( \mathcal{H}, \langle \cdot \vert \cdot \rangle \right)$};
\end{tikzpicture}
Also I don't know if this is a good approach to do what I want. Thanks.
matrix of math nodes
fromtikz
. For details see section 57.1 of the tikz manual or search for examples on TeX.SX!