tlquantum.tt_gates.CNOTL

class tlquantum.tt_gates.CNOTL(dtype=torch.complex64, device=None)[source]

Left (control-qubit) core of a CNOT gate.

Parameters:
devicestring, device on which to run the computation.
Returns:
Left core of CNOT gate.

Methods

forward()

Prepares the left qubit of the CNOT gate for forward contraction by calling the forward method and preparing the tt-factorized form of matrix representation.

reinitialize

forward()[source]

Prepares the left 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.