P is an open-source programming environment for quantum chemistry specially designed for wave function methods. Its main goal is the development of determinantdriven selected con guration interaction (sCI) methods and multi-reference second-order perturbation theory (PT2). e determinant-driven framework allows the programmer to include any arbitrary set of determinants in the reference space, hence providing greater methodological freedom.