Skip to content

stim.CompiledDemSampler.sample(return_errors=True) too slow when the error matrix is sparse #746

Open
@fangzh-umich

Description

@fangzh-umich

I think in many cases it can be useful to get a "ground truth" when sampling errors. From my understanding the intended way to do so with Stim is stim.CompiledDemSampler.sample(return_errors=True). However this can be much slower than return_errors=False when the error matrix is sparse:

image

Would it be possible to return a sparse representation of the errors without so much time overhead?

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