Codes for quantum chemistry and physics