quantumlib / Stim

A fast stabilizer circuit library.
Apache License 2.0
338 stars 97 forks source link

Sinter Custom Sampler #682

Closed ghost closed 1 month ago

ghost commented 9 months ago

Similar to how sinter supports custom decoders, it should support custom samplers.

Use cases for this include someone lightly wrapping the flip or tableau simulator, or using a more complex tool like a cirq or numerical simulator to produce the measurement or detector outcomes.

This should allow people to avoid re-implementing sinter's nice multiprocessing approach to sampling when they want to make a change to how the sampler works.

inmzhang commented 6 months ago

Hi, has there been any progress on this issue recently? I have a project coming up that requires a custom sampler. If you currently don't have the time to address it, I would be willing to contribute.