pyGSTi icon indicating copy to clipboard operation
pyGSTi copied to clipboard

Adding seed for VB

Open Skoricius opened this issue 2 years ago • 1 comments

PeriodicMirrorCircuitDesign in vb.py currently does not support seeding for reproducible results. But create_random_germpower_mirror_circuits method that it uses supports it.

To fix this, it would just be down to adding the seed to the __init__ method and passing it to create_random_germpower_mirror_circuits (line 259 in vb.py):

            circtemp, outtemp, junk = _rc.create_random_germpower_mirror_circuits(
                pspec, abs_clifford_compilations, depths, qubit_labels=qubit_labels, localclifford=localclifford,
                paulirandomize=paulirandomize, interacting_qs_density=samplerargs[0],
                fixed_versus_depth=fixed_versus_depth,
                seed=seed)

Skoricius avatar Aug 09 '22 13:08 Skoricius

Thanks for reporting this. This was also noted as a subissue in #252. Hopefully should get to this soon.

sserita avatar Aug 23 '22 16:08 sserita

Closed as this is now in 0.9.11 release

sserita avatar May 17 '23 06:05 sserita