Represents a sub-circuit. More...
Public Member Functions | |
subcircuit (standard_circuit &base, unsigned from, unsigned to) | |
Default constructor. More... | |
subcircuit (circuit_variant &base, unsigned from, unsigned to) | |
Default constructor. More... | |
subcircuit (const circuit_variant &base, unsigned from, unsigned to) | |
Default constructor. More... | |
subcircuit (standard_circuit &base, unsigned from, unsigned to, std::vector< unsigned > filter) | |
Constructor with line filter. More... | |
subcircuit (const circuit_variant &base, unsigned from, unsigned to, std::vector< unsigned > filter) | |
Constructor with line filter. More... | |
~subcircuit () | |
Deconstructor. More... | |
Represents a sub-circuit.
A sub-circuit is a window which can be set on top of a standard_circuit. All methods are specialized for the sub-circuit. But the gates are references to the underlying circuit.
|
inline |
Default constructor.
This constructor creates a sub-circuit from a base which is a standard_circuit and a range of gates [from
, to
). Thus, the gate with index to
is not included.
base | Underlying circuit |
from | First gate to be included (starting from 0) |
to | First gate to be not included anymore |
|
inline |
Default constructor.
Same as other constructor but takes a generic circuit, which will get casted to a standard_circuit.
base | Underlying circuit (has to be standard_circuit in the variant) |
from | First gate to be included (starting from 0) |
to | First gate to be not included anymore |
|
inline |
Default constructor.
Same as other constructor but takes a generic circuit, which will get casted to a standard_circuit.
base | Underlying circuit (has to be standard_circuit in the variant) |
from | First gate to be included (starting from 0) |
to | First gate to be not included anymore |
|
inline |
Constructor with line filter.
This constructor creates a sub-circuit from a base which is a standard_circuit and a range of gates [from
, to
). Thus, the gate with index to
is not included.
Further a line filter is specified. The vector contains all line indices (starting from 0) which should be accessible.
base | Underlying circuit |
from | First gate to be included (starting from 0) |
to | First gate to be not included anymore |
filter | Line filter |
|
inline |
Constructor with line filter.
Same as other constructor but takes a generic circuit, which will get casted to a standard_circuit.
base | Underlying circuit (has to be a standard_circuit in the variant) |
from | First gate to be included (starting from 0) |
to | First gate to be not included anymore |
filter | Line filter |
|
inline |