Skip to main content

Haiqu.draw(circuit: QuantumCircuit | CircuitModel, style: str = ”)

Render a quantum circuit the cool way — neon, Japan 80s style. Intended to be used with the Haiqu Lab user interface.
  • Parameters:
    • circuit (QuantumCircuit | CircuitModel) — The quantum circuit to draw.
    • style (str) — The CSS class to use. The options are:
      • "" (default): classic blue neon
      • “haiqu_blue”: Haiqu blue
      • “haiqu_light”: Haiqu light
      • “haiqu_light2”: Haiqu light (alternative)
      • “haiqu_neutral”: Haiqu neutral
      • “haiqu_orange”: Haiqu orange
      • “haiqu_pink”: Haiqu pink
      • “neon”: classic yellow neon
      • “neutral”: Haiqu light grey

Examples

>>> haiqu.draw(circuit)
>>> haiqu.draw(circuit, "neutral")
>>> haiqu.draw(circuit, "neon")
>>> haiqu.draw(circuit, "haiqu_pink")