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_sizeint

Number of qubits on which to operate.

operatorstr | Operator

A two-qubit gate, either denoted by a string (“CNOT”, “CZ”) or by a 4x4 two-qubit matrix.

directionint | None

Direction in which gates are applied. If ‘None’, direction will be chosen based on the orthogonalitiy center of the state.

strategyStrategy

Truncation strategy (Defaults to DEFAULT_STRATEGY)