Quantum-Dynamics-Hub / libra-code

https://quantum-dynamics-hub.github.io/libra/index.html
GNU General Public License v3.0
48 stars 44 forks source link

Added an auxiliary function to step 3 for generating new active spaces based on the number of occupied and unoccupied orbitals #214

Closed MohammadShakiba closed 2 months ago

MohammadShakiba commented 2 months ago

After finding the proper number of occupied and unoccupied orbitals from the energy vs time plots, one requires to define new lowest_orbital and highest_orbital values for step 3 or rerun the step 2 from scratch using the new values of lowest_orbital and highest_orbital. By using the step3.limit_active_space(params) the user does not need to rerun step 2 nor writing a script to extract the data from step 2 calculations with the new active space for S, St, and E matrices. This function does all and the new tutorial works for many-body basis.