T gate with a prepared Y state

This variant supplies a prepared Y ancilla for the Clifford correction. Its explicit ancilla geometry makes the correction part of the teleportation layout.

Block graph

BLOG source

BLOG 1.0

module main {
  in q_in: data = 0
  out q_out: data = 2

  0: Port [0, 0, 0] <In>
  1: XZX [0, 0, 1]
  2: Port [0, 0, 2] <Out>
  3: T [1, 0, 0]
  4: XZX [1, 0, 1]
  5: XZX [2, 0, 1]
  6: ZXX [2, 1, 1]
  7: XZ [2, 1, 2]
  8: Y [3, 0, 0]
  9: XZX [3, 0, 1]
  0 -> +Z
  1 -> +Z
  1 -> +X
  3 -> +Z
  4 -> +X
  5 -> +Y
  5 -> +X
  6 -> +Z
  9 -> -Z

  mzz = measure 1 -> +X
  feedback Z 8
  resolve 7 if !mzz

}

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