Phase-space dilation generator (source code)

= Phase-space dilation generator

The function $D=q\cdot p$ generates the canonical scaling $(q,p)\mapsto(e^tq,e^{-t}p)$. An observable $F$ is invariant under this scaling exactly when
$$
\{F,D\}=q\cdot\nabla_qF-p\cdot\nabla_pF=0.
$$