Functions:
| Name | Description |
|---|
linear_pauli_rotations | [Qmod Classiq-library function]. |
linear_pauli_rotations
linear_pauli_rotations(
bases: CArray[Pauli],
slopes: CArray[CReal],
offsets: CArray[CReal],
x: QArray[QBit],
q: QArray[QBit]
) -> None
[Qmod Classiq-library function]
Performs a rotation on a series of m target qubits,
where the rotation angle is a linear function of an n-qubit
control register.
Corresponds to the braket notation:
∣x⟩n∣q⟩m→∣x⟩nk=1∏m(cos(2akx+2bk)−isin(2akx+2bk)Pk)∣qk⟩
where ∣x⟩ is the control register,
∣q⟩ is the target register, each P{k} is one of
the three Pauli matrices X, Y, or Z, and a{k}, b{k} are
the user given slopes and offsets, respectively.
Parameters:
| Name | Type | Description | Default |
|---|
bases | CArray[Pauli] | List of Pauli Enums. | required |
slopes | CArray[CReal] | Rotation slopes for each of the given Pauli bases. | required |
offsets | CArray[CReal] | Rotation offsets for each of the given Pauli bases. | required |
x | QArray[QBit] | Quantum state to apply the rotation based on its value. | required |
q | QArray[QBit] | List of indicator qubits for each of the given Pauli bases. | required |