Utilities#
Decorators#
|
Extends a Runnable subclass with a stop_signal semaphore/event, and amends the existing halt and next methods to signal stop via the semaphore, and reset the stop signal on run completion, respectively. |
Methods#
|
Calculate BQM's graph density. |
|
Return edges connecting specified variables of a binary quadratic model. |
|
Induce a binary quadratic model by fixing values of boundary variables. |
|
Reduce a binary quadratic model by fixing values of some variables. |
|
Map a binary quadratic model to a set of Chimera tiles. |
|
Order variable flips by descending contribution to energy changes in a BQM. |
|
Horizontally combine samples in base sampleset with samples in all the other samplesets provided in *others. |
|
Return a sample with all variables set to the maximal value for a binary quadratic model. |
|
Return a sample with all variables set to the minimal value for a binary quadratic model. |
|
Return a random sample for a binary quadratic model. |
|
Return a random sample. |
|
Return sample object in dict format. |
|
Return sample object in list format. |
|
Find variable flips that contribute high energy changes to a BQM. |
|
Select randomly n variables of the specified binary quadratic model. |
|
Update a copy of a sample with replacement values. |
|
Vertically combine *samplesets. |
Classes#
|
JSON encoder for numpy types. |
|
JSON encoder for common Ocean types. |