Quantum Many-Body States of Ultracold Gases and their Applications