qib.tensor_network.symbolic_network.SymbolicTensor¶
- class qib.tensor_network.symbolic_network.SymbolicTensor(tid: int, shape: Sequence[int], bids: Sequence[int], dataref)[source]¶
Bases:
objectSymbolic tensor, storing a unique ID, its shape, connected bond IDs (representing contractions with other tensors) and a user-provided reference to the data of the tensor.
Methods
Transpose the axes of the tensor, analogous to numpy.transpose.
Attributes
Number of dimensions (degree) of the tensor.