set_state
Method of BasisState.
set_state(const integer site, integer state) -> BasisState
Sets the local state at a specific site.
Performs in-place modification of the local state at the specified site.
Parameters
- site: Site index to modify.
- state: New local state value.