PauliWeightTruncationParams#

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

Empty-initialize an instance of cupaulipropPauliWeightTruncationParams_t.

Methods

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

Create an PauliWeightTruncationParams instance wrapping the given NumPy array.

Parameters:

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

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

Create an PauliWeightTruncationParams 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

cutoff#

cutoff value for the number of non-identity Paulis in the Pauli string

Type:

int

ptr#

Get the pointer address to the data as Python int.