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