ElementaryOperator#
-
class cuquantum.
densitymat. jax. ElementaryOperator( - data: Array | ShapeDtypeStruct,
- callback: WrappedTensorCallback | None = None,
- grad_callback: WrappedTensorGradientCallback | None = None,
- diag_offsets: Tuple[int, ...] = (),
PyTree class for cuDensityMat’s elementary operator.
Methods
- __init__(
- data: Array | ShapeDtypeStruct,
- callback: WrappedTensorCallback | None = None,
- grad_callback: WrappedTensorGradientCallback | None = None,
- diag_offsets: Tuple[int, ...] = (),
Initialize an ElementaryOperator object.
- Parameters:
data – Data specification of the elementary operator. If
callbackisNone,datashould be ajax.Array; otherwise,datashould be ajax.ShapeDtypeStruct.callback – Forward callback for the elementary operator.
grad_callback – Gradient callback for the elementary operator.
diag_offsets – Diagonal offsets of the elementary operator.
- copy() ElementaryOperator[source]#
Copy the elementary operator.