qiskit.quantum_info.SparsePauliOp.assign_parameters¶
- SparsePauliOp.assign_parameters(parameters, inplace=False)[Quellcode]¶
Bind the free
Parameter
s in the coefficients to provided values.- Parameter
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.
- Rückgabe
A copy of the operator with bound parameters, if
inplace
isFalse
, otherwiseNone
.- Rückgabetyp
SparsePauliOp | None