qiskit.quantum_info.SparsePauliOp.assign_parameters¶
- SparsePauliOp.assign_parameters(parameters, inplace=False)[소스]¶
Bind the free
Parameter
s in the coefficients to provided values.- 매개변수
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.
- 반환
A copy of the operator with bound parameters, if
inplace
isFalse
, otherwiseNone
.- 반환 형식
SparsePauliOp | None