Skip to content

cirq + custatevec on multiple GPUs #26

Answered by leofang
hthayko asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hthayko thank you for using the cuQuantum container! This problem is due to the fact that in Qsim the public option names do not match the keys used by QsimSimulator internally, see https://github.com/quantumlib/qsim/blob/11e8afadc7f03c1691c0e506b9620311b26be2d6/qsimcirq/qsim_simulator.py#L76-L101. We had to follow the Google team's convention. Therefore, if instead of passing a dict you create/pass a QSimOptions object

options = qsimcirq.QSimOptions(gpu_mode=num_gpus)

it'd be correct. Extra tips:

  • you don't have to set n_subsvs explicitly
  • a new 22.11 container is out, which includes some perf optimizations

Hope this helps 🙂

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by leofang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #25 on December 23, 2022 20:39.