tlquantum.tt_gates.UnaryGatesUnitary

class tlquantum.tt_gates.UnaryGatesUnitary(nqubits, ncontraq, axis='y', contrsets=None, dtype=torch.complex64, device=None, random=False)[source]

A Unitary sub-class that generates a layer of unitary, single-qubit rotations.

Parameters:
nqubitsint, number of qubits
ncontraqint, number of qubits to do pre-contraction over

(simplifying contraciton path/using fewer indices)

contrsetslist of lists of ints, the indices of qubit cores to

merge in the pre-contraction path.

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