An especially useful class of quantum states is *graph states*

state, state, and edges

Since

An alternative mathematical way of describing a graph state relies on the *stabiliser* formalism. For every vertex

where *cluster state*.

On PhotonQ, you can generate graph states from 'classical' quantum circuits.

For example the linear cluster of 5 qubits, or a GHZ state of 4 qubits (see below)

Diagram

`OPENQASM 2.0; include "qelib1.inc"; qreg q[5]; h q; cz q[0],q[1]; cz q[1],q[2]; cz q[2],q[3]; cz q[3],q[4];`

Translation

Powered by Perceval, Qiskit, PyZX

Not run yet

Simulation

Not run yet

Diagram

`OPENQASM 2.0; include "qelib1.inc"; qreg q[4]; h q; cz q[0],q[1]; cz q[0],q[2]; cz q[0],q[3];`

Translation

Powered by Perceval, Qiskit, PyZX

Not run yet

Simulation

Not run yet