The state is the current set of selected determinants to include in the approximate calculation of the sCI problem. The environment is the space of all possible Slater determinants. During each step of an episode, the local reward r can be determined by the change in the obtained eigenvalue λ new from the previous step λ old , that is