Skip to main content

operator_prod

Overloads

NameDescription
operator_prod() -> OperatorProductCreates an empty OperatorProduct.
operator_prod(const Operator op) -> OperatorProductCreates an OperatorProduct from a single operator.
operator_prod(const OperatorProduct op_prod) -> OperatorProductCreates an OperatorProduct from an existing OperatorProduct.

operator_prod() -> OperatorProduct

Creates an empty OperatorProduct.

Returns

A new empty OperatorProduct.

Example

var my_prod = operator_prod()  # Creates empty OperatorProduct

operator_prod(const Operator op) -> OperatorProduct

Creates an OperatorProduct from a single operator.

Parameters

  • op: The operator to include in the product.

Returns

A new OperatorProduct containing the operator.

Example

var my_prod = operator_prod(X(0))  # Creates OperatorProduct with single operator

operator_prod(const OperatorProduct op_prod) -> OperatorProduct

Creates an OperatorProduct from an existing OperatorProduct.

Parameters

Returns

A new OperatorProduct.

Example

var my_prod = operator_prod(X(0) * Y(2))  # Creates OperatorProduct