full_matrix_product#
-
cuquantum.
densitymat. full_matrix_product( - *operands: Tuple[MatrixOperator, bool | None, bool | None],
- coeff: Number | ndarray | ndarray | Callback | Tuple[Number, Callback] | Tuple[ndarray | ndarray, Callback] = 1.0,
- batch_size: int = 1,
Return an
OperatorTermfrom a product of matrix operators defined on the full Hilbert space.- Parameters:
operands –
Operands in the product. Each operand is a tuple of length 1 to 3 of the form
(matrix, conjugation, dual), wherematrixis an instance ofMatrixOperatorandconjugationanddualare optional booleans and default toFalse.conjugation=Trueimplies that the complex conjugate transpose of theMatrixOperatoris applied.dual=Trueimplies that the MatrixOperator acts from the right on the bra modes of a mixed quantum state, whiledual=False(default) theMatrixOperatoracts from the left on the ket modes of the pure or mixed quantum state.
coeff – Coefficient(s) associated with this
OperatorTerm.batch_size – Batch size of coefficient
coeff, needs to be specified only ifcoeffis aCallback.
- Returns:
An
OperatorTermconstructed from the product ofMatrixOperatorinstances.