I have seen this post for writing commutative diagrams, needed for a chemistry purpose. When trying that latex returns an error. I couldn't get what's going on.
Below there is a MWE
\documentclass[a4paper,12pt]{article}
\usepackage{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage{chemformula}
\usepackage{siunitx}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\matrix (m) [matrix of math nodes,row sep=3em,column sep=4em,minimum width=2em] {
$\ch{H2O_s}$\SI{-20}{\celsius} & $\ch{H2O_l}$\SI{50}{\celsius} \\
$\ch{H2O_s}$\SI{-0}{\celsius} & $\ch{H2O_l}$\SI{-0}{\celsius} \\};
\path[-stealth]
(m-1-1) edge node [left] {$Q_1$} (m-2-1)
edge node [below] {$Q_T$} (m-1-2)
(m-2-1.east|-m-2-2) edge node [below] {$Q_2$} node [above] {$\exists$} (m-2-2)
(m-1-2) edge node [right] {$Q_3$} (m-2-2)
edge [dashed,-] (m-2-1);
\end{tikzpicture}
\end{document}



tikz-cd, but you preceded me. I can remove my answer if you prefer. Sorry. I put +1. – Sebastiano May 21 '18 at 20:31swap? – May 21 '18 at 20:34swapmeans “place the object on the opposite side than default, which is on the left of the arrow (analogously to the terminology used for river banks). – egreg May 21 '18 at 20:50