tequilahub / tequila

A High-Level Abstraction Framework for Quantum Algorithms
MIT License
362 stars 101 forks source link

Update madness_interface.py #273

Closed kottmanj closed 1 year ago

kottmanj commented 1 year ago

fixing a bug that appears when n_pno is set manually and is smaller than the number of electron pairs. Example N2 with n_pno=3 (triple bond only). Maxrank was then set to zero. Prevent this from happening by forcing maxrank to be at least 1 when auto-assigned.