Skip to content

Improve sampling speed by reducing data conversion overhead - #1117

Merged
Strilanc merged 6 commits into
mainfrom
transposed_sampling
Oct 9, 2026
Merged

Strilanc merged 6 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
@Strilanc
Strilanc merged commit a1cdcb8 into main Oct 9, 2026
56 checks passed
@Strilanc
Strilanc deleted the transposed_sampling branch October 9, 2026 21:33
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