PauliTerm#

class cuquantum.bindings.cupauliprop.PauliTerm[source]#

Empty-initialize an instance of cupaulipropPauliTerm_t.

Methods

__init__(*args, **kwargs)#
static from_data(data)[source]#

Create an PauliTerm instance wrapping the given NumPy array.

Parameters:

data (_numpy.ndarray) – a 1D array of dtype pauli_term_dtype holding the data.

static from_ptr(intptr_t ptr, bool readonly=False)[source]#

Create an PauliTerm instance wrapping the given pointer.

Parameters:
  • ptr (intptr_t) – pointer address as Python int to the data.

  • readonly (bool) – whether the data is read-only (to the user). default is False.

Attributes

coef#

non-owning pointer to the coefficient (real/complex float/double)

Type:

int

ptr#

Get the pointer address to the data as Python int.

xzbits#

non-owning pointer to the packed X and Z bits arranged as an array of cupaulipropPackedIntegerType_t

Type:

int