qiboteam / qibojit-benchmarks

Benchmark code for qibojit performance accessment
Apache License 2.0
2 stars 3 forks source link

Set `max_largest_intermediate` for hybridq #31

Closed stavros11 closed 2 years ago

stavros11 commented 2 years ago

Fixes #30. Apparently there is a max_largest_intermediate option in hybridq's simulate which is relevant for their tensor network simulator but, at least according to the documentation, is only used to raise an error for the state vector simulator. Here I hardcode a very high value (40 qubits) in this parameter so that we never get the error. I tried on qibomachine CPU and it works now, previously I was getting the same error. @mlazzarin can you also try with your examples?

By the way, I have not checked in detail where this value is used in their code, so I am not sure if setting it to a very high number has any effect in performance when simulating smaller circuits.

mlazzarin commented 2 years ago

Thank you! Now everything works fine for me.