Skip to content

Commit

Permalink
style: enable type checking for pecos
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Feb 1, 2024
1 parent 94eef6b commit 787239c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ repos:
pytest,
pytket-quantinuum,
pytket,
quantum-pecos>=0.5.0.dev8,
types-setuptools,
wasmtime,
]
6 changes: 3 additions & 3 deletions pytket/phir/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from argparse import ArgumentParser
from importlib.metadata import version

from pecos.engines.hybrid_engine import HybridEngine # type:ignore [import-not-found]
from pecos.foreign_objects.wasmtime import WasmtimeObj # type:ignore [import-not-found]
from pecos.engines.hybrid_engine import HybridEngine
from pecos.foreign_objects.wasmtime import WasmtimeObj

from pytket.qasm.qasm import (
circuit_from_qasm,
Expand Down Expand Up @@ -80,6 +80,6 @@ def main() -> None:
HybridEngine(qsim="state-vector").run(
program=phir,
shots=10,
foreign_object=wasm_pecos_obj if args.wasm_file else None,
foreign_object=wasm_pecos_obj if args.wasm_file else None, # type: ignore[arg-type]
)
)

0 comments on commit 787239c

Please sign in to comment.