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
OperatorTerm
from 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)
, wherematrix
is an instance ofMatrixOperator
andconjugation
anddual
are optional booleans and default toFalse
.conjugation=True
implies that the complex conjugate transpose of theMatrixOperator
is applied.dual=True
implies that the MatrixOperator acts from the right on the bra modes of a mixed quantum state, whiledual=False
(default) theMatrixOperator
acts 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 ifcoeff
is aCallback
.
- Returns:
An
OperatorTerm
constructed from the product ofMatrixOperator
instances.