Skip to content

Improve sampling speed by reducing data conversion overhead - #1117

Open
Strilanc wants to merge 5 commits into
mainfrom
transposed_sampling
Open

Strilanc wants to merge 5 commits into
mainfrom
transposed_sampling

Conversation

@Strilanc

@Strilanc Strilanc commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator
  • Add transposed option to stim.CompiledDetectorSampler.sample, to allow skipping a transformation
  • Fix transposed_simd_bit_table_to_numpy_uint8 working bit-by-bit instead of byte-by-byte

Sampling 1024 shots from a d=7 r=7 surface code, and writing it into numpy arrays, improved from taking 600us to taking 80us.

@Strilanc Strilanc changed the title Add transposed option to stim.CompiledDetectorSampler.sample Improve sampling speed by reducing data conversion overhead Oct 3, 2026
@Strilanc
Strilanc enabled auto-merge (squash) October 3, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant