# detailed balance

${\displaystyle P_{ij}\pi _{i}=P_{ji}\pi _{j}\,}$
where P is the Markov transition matrix and ${\displaystyle \pi _{i}}$ and ${\displaystyle \pi _{j}}$ are the equilibrium probabilities of being in states i and j, respectively.