> ## 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.

# Bit Operations

Functions:

| Name                 | Description                                                                                  |
| -------------------- | -------------------------------------------------------------------------------------------- |
| `cyclic_shift_left`  | Performs a left shift on the quantum register array `reg` using SWAP gates.                  |
| `cyclic_shift_right` | Performs a right shift on the quantum register array `reg` by inverting cyclic\_shift\_left. |
| `bitwise_negate`     | Negates each bit of the input x.                                                             |

### cyclic\_shift\_left

<pre><code>cyclic\_shift\_left(
reg: QArray\[QBit]
) -> None</code></pre>

Performs a left shift on the quantum register array `reg` using SWAP gates.

**Parameters:**

| Name  | Type           | Description | Default    |
| ----- | -------------- | ----------- | ---------- |
| `reg` | `QArray[QBit]` |             | *required* |

### cyclic\_shift\_right

<pre><code>cyclic\_shift\_right(
reg: QArray\[QBit]
) -> None</code></pre>

Performs a right shift on the quantum register array `reg` by inverting cyclic\_shift\_left.

**Parameters:**

| Name  | Type           | Description | Default    |
| ----- | -------------- | ----------- | ---------- |
| `reg` | `QArray[QBit]` |             | *required* |

### bitwise\_negate

<pre><code>bitwise\_negate(
x: QArray\[QBit]
) -> None</code></pre>

Negates each bit of the input x.

**Parameters:**

| Name | Type           | Description | Default    |
| ---- | -------------- | ----------- | ---------- |
| `x`  | `QArray[QBit]` |             | *required* |
