tlquantum.tt_gates.RotZ

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

Qubit rotations about the Z-axis with randomly initiated theta.

Parameters:
devicestring, device on which to run the computation.
Returns:
RotZ

Methods

forward()

Prepares the RotZ gate for forward contraction by calling the forward method and preparing the tt-factorized form of rotation matrix depending on theta (which is typically updated every epoch through backprop via PyTorch Autograd).

forward()[source]

Prepares the RotZ gate for forward contraction by calling the forward method and preparing the tt-factorized form of rotation matrix depending on theta (which is typically updated every epoch through backprop via PyTorch Autograd).

Returns:
Gate tensor for general forward pass.