qmlcode / qml

QML: Quantum Machine Learning
MIT License
199 stars 85 forks source link

Time taken to import qml modules #135

Open puckvg opened 3 years ago

puckvg commented 3 years ago

Hello,

It might just be me, but I was recently timing / profiling some reasonably fast code and noticed that the bottleneck was the qml import. I then ran a file containing only the two imports that were causing the bottleneck, i.e. import.py containing:

from qml.kernels import gaussian_kernel
from qml.math import cho_solve

and it took my reasonably crap laptop 4s to run that. Is it just me or could there be some hefty imports in those modules?

Thanks, Puck

charnley commented 3 years ago

Interesting find @puckvg. Looking forward to your pull-request.