tlquantum.tt_gates
.CNOTR
- class tlquantum.tt_gates.CNOTR(device=None)[source]
Right (transformed qubit) core of a CNOT gate.
- Parameters
- devicestring, device on which to run the computation.
- Returns
- Right core of CNOT gate.
Methods
forward
()Prepares the right qubit of the CNOT gate for forward contraction by calling the forward method and preparing the tt-factorized form of matrix representation.
- forward()[source]
Prepares the right qubit of the CNOT gate for forward contraction by calling the forward method and preparing the tt-factorized form of matrix representation.
- Returns
- Gate tensor for general forward pass.