Skip to content

Gauge detectors stop backpropagating at resets, leading to DEM depending on gate order #971

@asierpinor

Description

@asierpinor

When a circuit contains a gauge detector it seems like it stops backpropagating after it hits a reset. This doesn't happen when the detector is deterministic.

Plotting with circuit.diagram("detslice-with-ops") looks like this:

Image

The blue area is the gauge detector, and the red area is a normal detector.

As a consequence of this, errors that happen before the reset don't affect the blue gauge detector, which means that the DEM might be different depending on the order of operations.

If this is intended behavior it would be good to document it, but I would expect the behavior to be the same for deterministic and non-deterministic detectors. If so it would be great to fix it.

I uploaded the full example here: https://github.com/asierpinor/issue-stim-gauge-detectors

I should say that circuit.detecting_regions() does give the right detecting regions for both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions