cuquantum.custatevec.apply_pauli_rotation¶
- cuquantum.custatevec.apply_pauli_rotation(intptr_t handle, intptr_t sv, int sv_data_type, uint32_t n_index_bits, double theta, paulis, targets, uint32_t n_targets, controls, control_bit_values, uint32_t n_controls)[source]¶
Apply the exponential of a multi-qubit Pauli operator.
- Parameters
handle (intptr_t) – The library handle.
sv (intptr_t) – The pointer address (as Python
int
) to the statevector (on device).sv_data_type (cuquantum.cudaDataType) – The data type of the statevector.
n_index_bits (uint32_t) – The number of index bits.
theta (double) – The rotation angle.
paulis –
A host array of
Pauli
operators. It can betargets –
A host array of target bits. It can be
an
int
as the pointer address to the arraya Python sequence of target bits
n_targets (uint32_t) – The length of
targets
.controls –
A host array of control bits. It can be
an
int
as the pointer address to the arraya Python sequence of control bits
control_bit_values –
A host array of control bit values. It can be
an
int
as the pointer address to the arraya Python sequence of control bit values
n_controls (uint32_t) – The length of
controls
.
See also