Stim
Stim copied to clipboard
A fast stabilizer circuit library.
Attempt at signature (oh boy it's a big one): ``` def stim.Circuit.diagram( self, *, style: Literal['timeline', 'layers', '3d'], format: Literal['ascii', 'utf-8', 'katex', 'svg', 'html', 'gltf'], file: Union[None, str, pathlib.Path, io.BaseTextIO]...
Options: - `unsigned=False` (when true ignores global phase, so e.g. 45 degree rotation inputs would work) - `endian`
Sometimes you just want to propagate errors without worrying so much about the reference sample. Features: - Optional frame randomization during collapse. - Read/write the pauli strings being propagated. -...
During reference sampling, in circuits with loops that have a large number of repetitions, the instantaneous stabilizer group can start to recur at the loop boundaries. This can be used...
While collecting for heavy hex demo I noticed that an invocation of sinter collect with two decoders only ran cases for one of the decoders. Not sure what exactly triggered...
In https://github.com/Strilanc/heavy-hex-demo/blob/main/main_test.py I had to turn a circuit into a str and reparse it in order for it to be equal. Clearly something under the hood with no externally-observable difference...