Skip to content

Why QSimOptions is throwing error when use_sampler disable_gpu are used ? #16

@ShashiQubit

Description

@ShashiQubit

`TypeError Traceback (most recent call last)
Cell In [9], line 2
1 ngpus = 1
----> 2 qsim_options = qsimcirq.QSimOptions(
3 max_fused_gate_size = 2
4 , cpu_threads = 1
5 , gpu_mode = ngpus
6 , use_sampler = True
7 , disable_gpu = False
8 )
9 qsim_simulator = qsimcirq.QSimSimulator(qsim_options)

TypeError: init() got an unexpected keyword argument 'use_sampler'`

It's working fine when these 2 options are removed. I am using windows wsl to run it locally using conda installation.
The documentation clearly has these options. Link to QSimOptions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions