Skip to content

Commit

Permalink
revert tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles MOUSSA committed Sep 3, 2024
1 parent 303699f commit d4c5457
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 0 additions & 8 deletions pyqtorch/tensors.py

This file was deleted.

5 changes: 4 additions & 1 deletion pyqtorch/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import pyqtorch as pyq
from pyqtorch.matrices import DEFAULT_MATRIX_DTYPE, DEFAULT_REAL_DTYPE, IDIAG, IMAT
from pyqtorch.tensors import DensityMatrix

State: TypeAlias = Tensor
Operator: TypeAlias = Tensor
Expand All @@ -36,6 +35,10 @@
logger = getLogger(__name__)


class DensityMatrix(Tensor):
pass


def qubit_support_as_tuple(support: int | tuple[int, ...]) -> tuple[int, ...]:
"""Make sure support returned is a tuple of integers.
Expand Down

0 comments on commit d4c5457

Please sign in to comment.