qiboteam / qibojit-benchmarks

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

Hybridq does not work with circuits of more than 26 qubits #30

Closed mlazzarin closed 2 years ago

mlazzarin commented 2 years ago

If I try to run python compare.py --library hybridq-gpu --nqubits 27 on a NVIDIA Tesla V100, I get the following error:


Traceback (most recent call last):
  File "compare.py", line 45, in <module>
    library_benchmark(**args)
  File ".../qibojit-benchmarks/benchmarks/scripts.py", line 118, in library_benchmark
    result = backend(circuit)
  File ".../qibojit-benchmarks/benchmarks/libraries/hybridq.py", line 130, in __call__
    final_state = simulate(circuit, optimize="evolution-einsum",
  File ".../hybridq/circuit/simulation/simulation.py", line 320, in simulate
    return _simulate_evolution(circuit, initial_state, final_state,
  File ".../hybridq/circuit/simulation/simulation.py", line 410, in _simulate_evolution
    raise MemoryError(
MemoryError: Memory for the given number of qubits exceeds the 'max_largest_intermediate'.

while with 26 or less qubits it works fine. @stavros11 have you ever seen this error? EDIT: The problem appears also on CPU

mlazzarin commented 2 years ago

I guess we can close this.