Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds bell-flagged ("standard color code") circuits (from [Bair+19]) into the clorco directory of chromobius.
This is the diagram of the circuit from Figure 2 of the chromobius paper:
For example, with this PR, to generate a bell-flagged circuit you could use:
Within each cycle, and for each plaquette (red, green or blue), there is an "X stabilizer" detector, the "X stabilizer flag" detector that it's paired with (measured at the same time step), as well as the "Z stabilizer" detector and the "Z stabilizer flag" detector it's paired with. The fourth coordinate of the "X stabilizer" and "Z stabilizer" detectors have the same convention as the other color code circuits in this repository:
The fourth coordinate of the detector for a flag detector has the value
c+6
wherec
is the fourth coordinate of the detector it is "paired" with. i.e.:Note that the "Red X flag" detector is a Z measurement that flags potential hook errors in the "Red X" stabilizer measurement sub-circuit. Note also that the coordinates of the flags are not compatible with the chromobius decoder (which accepts coordinates in {-1, 0, 1, 2, 3, 4, 5}) but might be useful for other decoders.