X-Ray Constrained Wave Functions