operator_prod
Overloads
| Name | Description |
|---|---|
operator_prod() -> OperatorProduct | Creates an empty OperatorProduct. |
operator_prod(const Operator op) -> OperatorProduct | Creates an OperatorProduct from a single operator. |
operator_prod(const OperatorProduct op_prod) -> OperatorProduct | Creates 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
- op_prod: The OperatorProduct.
Returns
A new OperatorProduct.
Example
var my_prod = operator_prod(X(0) * Y(2)) # Creates OperatorProduct