qiskit.opflow.OperatorBase.mul¶
- abstract OperatorBase.mul(scalar)[código fonte]¶
Returns the scalar multiplication of the Operator, overloaded by
*
, including support for Terra’sParameters
, which can be bound to values later (viabind_parameters
).- Parâmetros
scalar (
Union
[complex
,ParameterExpression
]) – The real or complex scalar by which to multiply the Operator, or theParameterExpression
to serve as a placeholder for a scalar factor.- Tipo de retorno
- Retorno
An
OperatorBase
equivalent to product of self and scalar.