set_coefficient
Method of BasisState.
Overloads
| Name | Description |
|---|---|
set_coefficient(real coefficient) -> BasisState | Sets the real coefficient of the product state. |
set_coefficient(complex coefficient) -> BasisState | Sets 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.