> ## Documentation Index
> Fetch the complete documentation index at: https://prod-mint.classiq.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Hadamard Transform

<Card title="View on GitHub" icon="github" href="https://github.com/Classiq/classiq-library/blob/main/functions/qmod_library_reference/classiq_open_library/hadamard_transform/hadamard_transform.ipynb">
  Open this notebook in GitHub to run it yourself
</Card>

The Hadamard transform function applies an H gate on each qubit of the register inputted to the function.

Function: `hadamard_transform`

Arguments:

* `target`: `QArray[QBit]`

The `target` quantum argument is the quantum state on which we apply the Hadamard Transform.

## Example

```python theme={null}
from classiq import *


@qfunc
def main(x: Output[QArray[QBit]]):
    allocate(3, x)
    hadamard_transform(x)


qmod = create_model(main)
```

```python theme={null}

qprog = synthesize(qmod)
```
