The above illustration of avoided crossing however is a very specific case. From a generalised view point the phenomenon of avoided crossing is actually controlled by the parameters behind the perturbation. For the most general perturbation P = ( W 1 W W W 2 ) affecting a two-dimensional subspace of the Hamiltonian H , we may write the effective Hamiltonian matrix in that subspace as