dwave-hybrid icon indicating copy to clipboard operation
dwave-hybrid copied to clipboard

Simplify late binding of runopts on instantiated Runnables

Open randomir opened this issue 5 years ago • 0 comments

For example:

sa = hybrid.SimulatedAnnealingProblemSampler(sweeps=100)
...
sa.bind(sweeps=1000)
sa.partial(sweeps=1000)   # alternatively

would be a syntactic sugar for:

sa.next = functools.partial(sa.next, sweeps=1000)

randomir avatar May 07 '19 21:05 randomir