tlquantum.tt_gates
.IDENTITY
- class tlquantum.tt_gates.IDENTITY(dtype=torch.complex64, device=None)[source]
Identity gate (does not change the state of the qubit on which it acts).
- Parameters:
- devicestring, device on which to run the computation.
- Returns:
- IDENTITY
Methods
forward
()Prepares the left qubit of the IDENTITY gate for forward contraction by calling the forward method and preparing the tt-factorized form of matrix representation.
- forward()[source]
Prepares the left qubit of the IDENTITY 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.