Operator#

class cuquantum.densitymat.jax.Operator(dims: Sequence[int])[source]#

PyTree class for cuDensityMat’s operator.

Methods

__init__(dims: Sequence[int]) None[source]#

Initialize an Operator object.

Parameters:

dims – Hilbert space dimensions.

append(
op_term: OperatorTerm,
*,
dual: bool = False,
coeff: float = 1.0,
coeff_callback: WrappedScalarCallback | None = None,
coeff_grad_callback: WrappedScalarGradientCallback | None = None,
) None[source]#

Append an operator term to an operator.

Parameters:
  • op_term – Operator term to be appended.

  • dual – Duality of the operator term.

  • coeff – Coefficient of the operator term.

  • coeff_callback – Forward callback for the coefficient.

  • coeff_grad_callback – Gradient callback for the coefficient.