> ## Documentation Index
> Fetch the complete documentation index at: https://docs.haiqu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Draw

### Draw Circuit

#### Haiqu.draw(circuit, style='')

Render a quantum circuit. Intended to be used with the Haiqu Lab user interface.

This function also returns the matplotlib figure object for use in haiqu.log() and other contexts.

* **Parameters:**
  * **circuit** (*QuantumCircuit* *|* *CircuitModel*) -- The quantum circuit to draw.
  * **style** (*str*) --

    The CSS class to use. The options are:

    * "" (default): neutral style
    * "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
* **Returns:**
  The rendered circuit figure.
* **Return type:**
  matplotlib.figure.Figure

#### Examples

```python theme={null}
>>> haiqu.draw(circuit)
```

Use the returned figure to log the circuit diagram:

```python theme={null}
>>> fig = haiqu.draw(circuit)
>>> haiqu.log(fig, name="Look at this circuit!")
```
