tequilahub / tequila

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

Quick fix for 1.5e-05 type of coefficients #258

Closed IraitzM closed 1 year ago

IraitzM commented 1 year ago

While calling the tq.QubitHamiltonian.from_string I realized that number with e- notation where not being processed or gave errors. I did some small change so that it won't affect the rest of the cases but from_strign() fucntion can use those coefficients as well.