GHZ state

A row of connected preparation cubes creates a four-qubit GHZ state. Each output Port retains one member of the entangled state.

Block graph

BLOG source

BLOG 1.0

module main {
  out q0: data = 5
  out q1: data = 6
  out q2: data = 7
  out q3: data = 8

  0: XXZ [0, 0, 0]
  1: XZZ [0, 1, 0]
  2: XZZ [0, -1, 0]
  3: ZXZ [1, 0, 0]
  4: ZXZ [-1, 0, 0]
  5: Port [0, -1, 1]
  6: Port [-1, 0, 1]
  7: Port [0, 1, 1]
  8: Port [1, 0, 1]
  0 -> +X
  1 -> -Y
  1 -> +Z
  2 -> +Y
  2 -> +Z
  3 -> +Z
  4 -> +X
  4 -> +Z

}

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