T-state comparison

Two T resources are compared through a joint parity readout and a selective X/Y measurement. A final discard action rejects the shot when its corrected comparison result is one.

Block graph

BLOG source

BLOG 1.0

module main {
  0: T [0, 0, 0]
  1: T [1, 0, 0]
  2: XZX [0, 0, 1]
  3: XZX [1, 0, 1]
  4: XY [1, 0, 2]
  0 -> +Z
  1 -> +Z
  2 -> +X
  3 -> +Z

  cmp = measure 2 -> +X
  resolve 4 if cmp
  parity = measure 4
  discard if parity

}

See BLOG Format for the syntax or return to all examples.