tencent-quantum-lab / tensorcircuit

Tensor network based quantum software framework for the NISQ era
https://tensorcircuit.readthedocs.io
Apache License 2.0
252 stars 75 forks source link

Add examples benchmarking different contractor settings provided by cotengra #219

Closed king-p3nguin closed 1 month ago

king-p3nguin commented 1 month ago

Resolve #212

(I am contributing to this project as a unitaryHACK participant)

refraction-ray commented 1 month ago

thanks for the nice contribution. merged with some small tweaks:

  1. increase the max_time to 60
  2. comment most of the options by default
  3. use reuse=False in expectation calculation to directly compute the tensor network for the observable
refraction-ray commented 1 month ago

I find that jitting the function here speeds up the path-finding time

this part still requires further investigation in the future as the path finding stage seems to be irrelevant from jitting things as they are implemented outside the ML backend.