TruncationStrategy#

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

Empty-initialize an instance of cupaulipropTruncationStrategy_t.

Methods

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

Create an TruncationStrategy instance wrapping the given NumPy array.

Parameters:

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

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

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

param_struct#

pointer to the parameter structure for the truncation strategy

Type:

int

ptr#

Get the pointer address to the data as Python int.

strategy#

which kind of truncation strategy to apply

Type:

int