tlquantum.tt_gates
.RotX
- class tlquantum.tt_gates.RotX(dtype=torch.complex64, device=None, random=False)[source]
Qubit rotations about the X-axis with randomly initiated theta.
- Parameters:
- devicestring, device on which to run the computation.
- Returns:
- RotX
Methods
forward
()Prepares the RotX 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 RotX 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.