This method returns a type of Gate from the given data. Some specific Gates are constructed as follows:
InputGate is constructed with inputGate name, if name is a number then this gate is assumed to be constant.
|
|
|
SumGate is constructed with sumGate L, where L is a list of gates, or Gate + Gate.
|
|
ProductGate is constructed with productGate L, where L is a list of gates, or Gate * Gate.
|
|
DivideGate is constructed with Gate / Gate.
|
DetGate is constructed with detGate L, where L is a doubly-nested list of gates, or det A, where A is a GateMatrix.
|
|