Skip to main content
Functions:

apply_to_all

apply_to_all(
gate_operand: QCallable[Annotated[QBit, target]],
target: QArray[QBit]
) -> None
[Qmod Classiq-library function] Applies the single-qubit operand gate_operand to each qubit in the qubit array target. Parameters:

hadamard_transform

hadamard_transform(
target: QArray[QBit]
) -> None
[Qmod Classiq-library function] Applies Hadamard transform to the target qubits. Corresponds to the braket notation: Hnx=12ny=02n1(1)xcdotyy H^{\otimes n} |x\rangle = \frac{1}{\sqrt{2^n}} \sum_{y=0}^{2^n - 1} (-1)^{x \\cdot y} |y\rangle Parameters:

modular_increment

modular_increment(
a: CInt,
x: QNum
) -> None
[Qmod Classiq-library function] Adds aa to xx modulo the range of xx, assumed that xx is a non-negative integer and aa is an integer. Mathematically it is described as: x=(x+a) mod 2x.size1 x = (x+a)\ \mod \ 2^{x.size}-1 Parameters: