seemps.register.circuit.TwoQubitGatesLayer#
- class seemps.register.circuit.TwoQubitGatesLayer(register_size, operator, direction=None, strategy=<seemps.state.core.Strategy object>)[source]#
Layer of CNOT/CZ gates, acting on qubits 0 to N-1, from left to right or right to left, depending on the direction.
- Parameters:
- register_size
int
Number of qubits on which to operate.
- operator
str
|Operator
A two-qubit gate, either denoted by a string (“CNOT”, “CZ”) or by a 4x4 two-qubit matrix.
- direction
int
|None
Direction in which gates are applied. If ‘None’, direction will be chosen based on the orthogonalitiy center of the state.
- strategy
Strategy
Truncation strategy (Defaults to DEFAULT_STRATEGY)
- register_size