English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.SparsePauliOp.assign_parameters

SparsePauliOp.assign_parameters(parameters, inplace=False)[source]

Bind the free Parameters 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. If True the operator itself is modified.

Returns

A copy of the operator with bound parameters, if inplace is False, otherwise None.

Return type

SparsePauliOp | None