Skip to content

Commit

Permalink
Remove TypeAlias to support old Pyton version
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxiLi committed Oct 19, 2024
1 parent a5b666a commit 2f85638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/qutip_qip/circuit/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
Any,
Callable,
Iterable,
TypeAlias,
)

QubitSpecifier: TypeAlias = Union[int, Iterable[int]]
QubitSpecifier = Union[int, Iterable[int]]

import numpy as np
from copy import deepcopy
Expand Down
3 changes: 1 addition & 2 deletions src/qutip_qip/circuit/circuitsimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
Iterable,
Callable,
Any,
TypeAlias,
)

from ..operations import (
Expand All @@ -21,7 +20,7 @@
from qutip import basis, ket2dm, Qobj, tensor
import warnings

QubitSpecifier: TypeAlias = Union[int, Iterable[int]]
QubitSpecifier = Union[int, Iterable[int]]

__all__ = ["CircuitSimulator", "CircuitResult"]

Expand Down

0 comments on commit 2f85638

Please sign in to comment.