Represents a sub-circuit. More...
Public Member Functions | |
subcircuit (standard_circuit &base, unsigned from, unsigned to) | |
Default constructor. | |
subcircuit (circuit_variant &base, unsigned from, unsigned to) | |
Default constructor. | |
subcircuit (const circuit_variant &base, unsigned from, unsigned to) | |
Default constructor. | |
subcircuit (standard_circuit &base, unsigned from, unsigned to, std::vector< unsigned > filter) | |
Constructor with line filter. | |
subcircuit (const circuit_variant &base, unsigned from, unsigned to, std::vector< unsigned > filter) | |
Constructor with line filter. | |
~subcircuit () | |
Deconstructor. |
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.
subcircuit | ( | standard_circuit & | base, | |
unsigned | from, | |||
unsigned | to | |||
) | [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 |
subcircuit | ( | circuit_variant & | base, | |
unsigned | from, | |||
unsigned | to | |||
) | [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 |
subcircuit | ( | const circuit_variant & | base, | |
unsigned | from, | |||
unsigned | to | |||
) | [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 |
subcircuit | ( | standard_circuit & | base, | |
unsigned | from, | |||
unsigned | to, | |||
std::vector< unsigned > | filter | |||
) | [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 |
subcircuit | ( | const circuit_variant & | base, | |
unsigned | from, | |||
unsigned | to, | |||
std::vector< unsigned > | 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 |
~subcircuit | ( | ) | [inline] |