hybrid.core.Runnable.next#
- Runnable.next(state, **runopts)[source]#
Execute one blocking iteration of an instantiated
Runnable
with a valid state as input.- Parameters:
state (
State
) – Computation state passed between connected components.- Returns:
The new state.
- Return type:
Examples
This code snippet runs one iteration of a sampler to produce a new state:
new_state = sampler.next(core.State.from_sample({'x': 0, 'y': 0}, bqm))