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

# Hadamard Transform

> **[View on GitHub](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

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)
```

```python theme={null}

qprog = synthesize(main)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.