Skip to content

Add inter-append coalescing to stimflow.ChunkBuilder#1093

Merged
Strilanc merged 5 commits into
mainfrom
coalesceappendstimflow
Jul 15, 2026
Merged

Add inter-append coalescing to stimflow.ChunkBuilder#1093
Strilanc merged 5 commits into
mainfrom
coalesceappendstimflow

Conversation

@Strilanc

@Strilanc Strilanc commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator
  • Calling builder.append("CX", A); builder.append("CX", B) now ultimately produces the same output as builder.append("CX", A + B)
    • This fixes some usage annoyances I was noticing where I was manually coalescing calls in order to avoid ordering issues when making refactors later
  • Allow noise=None in stimflow.Chunk.find_distance
  • Add stimflow.Builder.add_obs_name_index
  • Improve error messages and error checking related to the mapping between stimflow observable names and stim observable indices
  • Add more docstrings and examples

Fixes #1091 (by adding better error messages to guide the user towards success)

Strilanc added 5 commits July 7, 2026 20:18
- Removes the canonicalization penalty for not including all targets in one append call
- Renamed `stim.ChunkBuilder.circuit` -> `stim.ChunkBuilder._circuit` because now the state of the circuit is difficult to understand
- Added a few more missing documentation examples
- Fixed `html_viewer` not producing a diagram for malformed chunks
- Allow setting `noise=None` for `stimflow.Chunk.find_distance`
… its name

- Fix o2i not being included in chunk repr
@Strilanc
Strilanc merged commit 213a307 into main Jul 15, 2026
57 checks passed
@Strilanc
Strilanc deleted the coalesceappendstimflow branch July 15, 2026 05:45
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.

Adding custom anticommuting observables to chunks in stimflow fails verification

1 participant