IMP: Improve qe.timeit function (cleaner output) and no default return object
Our new `qe.timeit` function needs some improvements.
Here is an example of output
<img width="1668" height="1032" alt="Image" src="https://github.com/user-attachments/assets/c95f9391-be4d-4a8f-8de0-051d6dd09893" />
1. The output has too much white space. Let's add an option (verbose=True/False; default True), that when True a nicely formatted output string is assembled and then printed at once at the end near the return of the function.
2. The function by default returns an object of time results. It would be helpful not to return this data unless requested by the user through a new option (results=True/False; default False)
关闭于 2025-08-28 0 条评论