qiskit.quantum_info.SparsePauliOp.assign_parameters¶
- SparsePauliOp.assign_parameters(parameters, inplace=False)[source]¶
Bind the free
Parameter
s in the coefficients to provided values.- Parameters
parameters (Mapping[Parameter, complex | ParameterExpression] | Sequence[complex | ParameterExpression]) – The values to bind the parameters to.
inplace (bool) – If
False
, a copy of the operator with the bound parameters is returned. IfTrue
the operator itself is modified.
- Returns
A copy of the operator with bound parameters, if
inplace
isFalse
, otherwiseNone
.- Return type
SparsePauliOp | None