ProjectQ-Framework / FermiLib

FermiLib: Open source software for analyzing fermionic quantum simulation algorithms
https://projectq.ch/
Apache License 2.0
87 stars 38 forks source link

Opt #149

Closed Spaceenter closed 7 years ago

Spaceenter commented 7 years ago

Optimize a few functions in _sparse_tools.py.

For 2D (4x4), this improves the running time from 86s to 16s on my mac. For 3D, the improvement should be much more.

Spaceenter commented 7 years ago

@babbush @idk3

Spaceenter commented 7 years ago

Hmm.. It seems to fail for python3 - will try to fix.

babbush commented 7 years ago

Looks like a couple more tests may also be needed.

Spaceenter commented 7 years ago

Fixed, and tests are OK now - please take a look again. @babbush @idk3

babbush commented 7 years ago

Coveralls appears to be down.

damiansteiger commented 7 years ago

Why did you close this PR? just re-run travis and coveralls might eventually work