German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.SparsePauliOp.assign_parameters

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

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

Rückgabe

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

Rückgabetyp

SparsePauliOp | None