create_pauli_rotation_gate_operator#
-
cuquantum.
bindings. cupauliprop. create_pauli_rotation_gate_operator( - intptr_t handle,
- double angle,
- int32_t num_qubits,
- qubit_indices,
- paulis,
Creates a Pauli rotation gate,
exp(-i * angle/2 * P), for a rotation ofanglearound the Pauli stringP.- Parameters:
handle (intptr_t) – Library handle.
angle (double) – Rotation angle in radians.
num_qubits (int32_t) – Number of qubits.
qubit_indices (object) –
Qubit indices. If NULL, the qubit indices are assumed to be [0, 1, 2, …, num_qubits-1]. It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
paulis (object) –
Pauli operators for each qubit index. It can be:
an
intas the pointer address to the array, ora Python sequence of
_PauliKind.
- Returns:
Quantum operator associated with the Pauli rotation gate.
- Return type:
intptr_t