Bit Operations
bit_operations
Functions:
| Name | Description |
|---|---|
cyclic_shift_left |
Performs a left shift on the quantum register array |
cyclic_shift_right |
Performs a right shift on the quantum register array |
bitwise_negate |
Negates each bit of the input x. |
cyclic_shift_left
cyclic_shift_left(reg: QArray[QBit]) -> None
Performs a left shift on the quantum register array reg using SWAP gates.
cyclic_shift_right
cyclic_shift_right(reg: QArray[QBit]) -> None
Performs a right shift on the quantum register array reg by inverting cyclic_shift_left.
bitwise_negate
bitwise_negate(x: QArray[QBit]) -> None
Negates each bit of the input x.