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,
) intptr_t[source]#

Creates a Pauli rotation gate, exp(-i * angle/2 * P), for a rotation of angle around the Pauli string P.

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 int as the pointer address to the array, or

    • a Python sequence of int32_t.

  • paulis (object) –

    Pauli operators for each qubit index. It can be:

    • an int as the pointer address to the array, or

    • a Python sequence of _PauliKind.

Returns:

Quantum operator associated with the Pauli rotation gate.

Return type:

intptr_t