Skip to main content

set_coefficient

Method of BasisState.

Overloads

NameDescription
set_coefficient(real coefficient) -> BasisStateSets the real coefficient of the product state.
set_coefficient(complex coefficient) -> BasisStateSets the complex coefficient of the product state.

set_coefficient(real coefficient) -> BasisState

Sets the real coefficient of the product state.

Modifies the coefficient that multiplies the product state, setting it to a real value.

Parameters

  • coefficient: New real coefficient value.

set_coefficient(complex coefficient) -> BasisState

Sets the complex coefficient of the product state.

Modifies the complex coefficient that multiplies the product state.

Parameters

  • coefficient: New complex coefficient value.