Steane encoding

A compressed encoding network joins its logical wires through spatial merge and split geometry. The named Ports identify the input and output boundaries of the encoding component.

Block graph

BLOG source

BLOG 1.0

module main {
  in q3_in: data = 4
  out q4_out: data = 7
  in q5_in: data = 9
  out q1_out: data = 12
  in q6_in: data = 14
  out q2_out: data = 17
  out q0_out: data = 18

  0: ZZX [-1, -1, 1]
  1: ZXX [-1, 0, 1]
  2: ZZX [-1, 1, 1]
  3: ZZX [0, -1, 1]
  4: Port [0, 0, -1] <Port3>
  5: ZXZ [0, 0, 0]
  6: ZXX [0, 0, 1]
  7: Port [0, 0, 2] <Port4>
  8: XZX [0, 1, 1]
  9: Port [1, -1, -1] <Port5>
  10: XZZ [1, -1, 0]
  11: XZX [1, -1, 1]
  12: Port [1, -1, 2] <Port1>
  13: XXZ [1, 0, 0]
  14: Port [1, 1, -1] <Port6>
  15: XZZ [1, 1, 0]
  16: XZX [1, 1, 1]
  17: Port [1, 1, 2] <Port2>
  18: Port [2, 0, 0] role=output <Port0>
  0 -> +Y
  0 -> +X
  1 -> +Y
  2 -> +X
  3 -> +Y
  3 -> +X
  4 -> +Z
  5 -> +Z
  5 -> +X
  6 -> +Z
  8 -> +X
  9 -> +Z
  10 -> +Z
  10 -> +Y
  11 -> +Z
  13 -> +Y
  13 -> +X
  14 -> +Z
  15 -> +Z
  16 -> +Z

}

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