GHZ#

diffqc.lib.GHZ(op, c: Array, wires: Tuple[int]) Array#

Create Greenberger-Horne-Zeilinger state from |00...0> state

|00...0> -> (|00...0> + |11...1>)/sqrt(2)

Parameters
  • opdense or sparse module

  • c (jnp.ndarray) – qubits state

  • wires (tuple of ints) – wire to apply.

Returns

applied qubits state

Return type

jnp.ndarray