StairLayerGenerator

class StairLayerGenerator(gate)[source]

Bases: LayerGenerator

Layer Generator for search that builds circuits from a single gate.

__init__(gate)[source]

Construct a StairLayerGenerator.

Parameters:

gate (Gate) – The gate to build from.

Methods

gen_initial_layer(target, data)

Generate the initial layer, see LayerGenerator for more.

gen_successors(circuit, data)

Generate the successors of a circuit node.