qiskit.opflow.primitive_ops.PrimitiveOp.mul¶
- PrimitiveOp.mul(scalar)[소스]¶
Returns the scalar multiplication of the Operator, overloaded by
*
, including support for Terra’sParameters
, which can be bound to values later (viabind_parameters
).- 매개변수
scalar (Union[complex, ParameterExpression]) – The real or complex scalar by which to multiply the Operator, or the
ParameterExpression
to serve as a placeholder for a scalar factor.- 반환
An
OperatorBase
equivalent to product of self and scalar.- 반환 형식