Skip to content

Feature request: Add seed support to stim.Tableau.random() for reproducibility #974

@marcomaronese

Description

@marcomaronese

I'm currently using stim.Tableau.random(n_qubits) as part of a benchmarking/stochastic optimization routine, and I've noticed that the method doesn't support passing a seed for reproducibility.

Currently, calling stim.Tableau.random(n_qubits) gives a different tableau at every run, and there appears to be no way to fix the randomness deterministically.

Are there any alternative solutions by any chance? Otherwise, would it be possible to add this feature?

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