Skip to content

Allow a decoder to be constructed from a raw Stim DEM - #788

Draft
melody-ren wants to merge 1 commit into
NVIDIA:mainfrom
melody-ren:melodyr/chromobius-raw-dem-on-decoding-server
Draft

Allow a decoder to be constructed from a raw Stim DEM#788
melody-ren wants to merge 1 commit into
NVIDIA:mainfrom
melody-ren:melodyr/chromobius-raw-dem-on-decoding-server

Conversation

@melody-ren

Copy link
Copy Markdown
Collaborator

A workaround solution to enable Chromobius on the decoding server while the proper solution is being worked out.

A decoder entry may name a Stim detector error model instead of the matrix form of the same model. The decoder is then constructed from the DEM text, which is the only construction a DEM-native decoder such as Chromobius accepts, and derives its own dimensions and observable mapping from it. The matrix keys become optional at the parser and the checks that compare against syndrome_size move to the constructed decoder; the matrix path is otherwise unchanged.

The model text also reaches a nested global decoder through global_decoder_params, so trt_decoder can build Chromobius rather than handing it a parity check matrix it cannot use.

A decoder entry may name a Stim detector error model instead of the
matrix form of the same model. The decoder is then constructed from the
DEM text, which is the only construction a DEM-native decoder such as
Chromobius accepts, and derives its own dimensions and observable
mapping from it. The matrix keys become optional at the parser and the
checks that compare against syndrome_size move to the constructed
decoder; the matrix path is otherwise unchanged.

The model text also reaches a nested global decoder through
global_decoder_params, so trt_decoder can build Chromobius rather than
handing it a parity check matrix it cannot use.

Signed-off-by: Melody Ren <melodyr@nvidia.com>
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