Skip to content

Commit

Permalink
adding test for h1-1
Browse files Browse the repository at this point in the history
  • Loading branch information
nealerickson-qtm committed Oct 12, 2023
1 parent c0565ad commit 46e34af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from pytket.phir.api import pytket_to_phir
from pytket.phir.qtm_machine import QtmMachine

from .sample_data import QasmFiles, get_qasm_as_circuit

Expand All @@ -12,3 +13,12 @@ def test_pytket_to_phir_no_machine(self) -> None:
# TODO: Make this test more valuable once PHIR is actually returned
print(phir)
assert len(phir) > 0

def test_pytket_to_phir_h1_1(self) -> None:
circuit = get_qasm_as_circuit(QasmFiles.baby)

phir = pytket_to_phir(circuit, QtmMachine.H1_1)

# TODO: Make this test more valuable once PHIR is actually returned
print(phir)
assert len(phir) > 0

0 comments on commit 46e34af

Please sign in to comment.