qiskit_addon_cutting.OptimizationParameters¶
- class OptimizationParameters(seed=None, max_gamma=1024, max_backjumps=10000, gate_lo=True, wire_lo=True)[source]¶
Bases:
object
Specify parameters that control the optimization.
If either of the constraints specified by
max_backjumps
ormax_gamma
are exceeded, the search terminates but nevertheless returns the result of a greedy best first search, which gives an upper-bound on gamma.Methods
__init__
([seed, max_gamma, max_backjumps, ...])Attributes
gate_lo
Bool indicating whether or not to allow LO gate cuts while finding cuts.
max_backjumps
Maximum number of backjumps that can be performed before the search is forced to terminate; setting it to
None
implies that no such restriction is placed.max_gamma
Maximum allowed value of gamma which, if exceeded, forces the search to terminate.
seed
The seed to use when initializing Numpy random number generators in the best first search priority queue.
wire_lo
Bool indicating whether or not to allow LO wire cuts while finding cuts.