Skip to content
Graphviz (DOT) templates

Bell State Preparation Circuit

Quantum circuit producing the maximally-entangled |Φ⁺⟩ state.

Template previewGraphviz (DOT)
Rendering…

Make it your own.

digraph qc {
  rankdir=LR;
  graph [bgcolor=transparent];
  node [shape=box, style="rounded,filled", fontname=Inter, fontsize=10];

  q0a [label="|0⟩", fillcolor="#dbeafe"];
  H [label="H", fillcolor="#fef3c7"];
  C [label="•", shape=circle, fillcolor="#0f172a", fontcolor="white"];
  m0 [label="M", fillcolor="#fce7f3"];

  q1a [label="|0⟩", fillcolor="#dbeafe"];
  X [label="⊕", fillcolor="#fef3c7"];
  m1 [label="M", fillcolor="#fce7f3"];

  q0a -> H -> C -> m0;
  q1a -> X -> m1;
  C -> X [style=dashed, label="CNOT"];
  out [label="(|00⟩ + |11⟩)/√2", shape=plaintext];
  m0 -> out [style=invis];
}