View on GitHub
Open this notebook in GitHub to run it yourself
linear_pauli_rotations
Arguments:
-
bases: CArray[int] - List of Pauli Enums.
-
slopes: CArray[float] - Rotation slopes for each of the given Pauli bases.
-
offsets: CArray[float] - Rotation offsets for each of the given Pauli bases.
-
x: QArray[QBit] - Quantum state to apply the rotation based on its value.
-
q: QArray[QBit] - List of indicator qubits for each of the given Pauli bases.
bases, slopes, offset and q should be of the same size.