Skip to content

Commit

Permalink
style: eliminate unused sympy import
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Jul 9, 2024
1 parent 2ce433f commit bdcf540
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pytket/phir/phirgen_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
from .phirgen import PHIR_HEADER, append_cmd, arg_to_bit, get_decls, tket_gate_to_phir

if TYPE_CHECKING:
import sympy

from pytket.unit_id import UnitID

from .machine import Machine
Expand Down Expand Up @@ -131,7 +129,7 @@ def process_sub_commands( # noqa: PLR0912
def groups2qops(groups: dict[int, list[tk.Command]], ops: list["JsonDict"]) -> None: # noqa: PLR0912
"""Convert the groups of parallel ops to properly formatted PHIR."""
for group in groups.values():
angles2qops: dict[tuple[sympy.Expr | float, ...], JsonDict] = {}
angles2qops: dict[tuple[float, ...], JsonDict] = {}
for qop in group:
if not qop.op.is_gate():
append_cmd(qop, ops)
Expand Down

0 comments on commit bdcf540

Please sign in to comment.