tlquantum.tt_gates.CZL

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

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

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

Methods

forward()

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