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 single-element array of dtype pauli_weight_truncation_params_dtype holding the data.

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

Create an PauliWeightTruncationParams instance wrapping the given pointer.

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

  • owner (object) – The Python object that owns the pointer. If not provided, data will be copied.

  • 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.