Where , , and are the standard creation operators and annihilation operators.

Two-mode Hamiltonian in angular momentum form

Take bosons in two modes , (for example the two wells of a double well) with tunnelling , on-site interaction and energy offset :

With conserved, each term maps directly onto the operators above:

so, dropping the constant,

Rescaling gives the form used in Phase estimation beyond the shot noise limit.