File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from dataclasses import dataclass , KW_ONLY , field
66from qsharp .qre import linear_function , generic_function
77from qsharp .qre ._architecture import _make_instruction
8- from qsharp .qre .models import GateBased , SurfaceCode
8+ from qsharp .qre .models import (
9+ GateBased ,
10+ SurfaceCode ,
11+ TwoDimensionalYokedSurfaceCode ,
12+ Litinski19Factory ,
13+ )
914from qsharp .qre ._enumeration import _enumerate_instances
1015
1116
@@ -32,19 +37,13 @@ class LargeDomain:
3237
3338
3439def bench_enumerate_isas ():
35- import os
36- import sys
37-
38- # Add the tests directory to sys.path to import test_qre
39- # TODO: Remove this once the models in test_qre are moved to a proper module
40- sys .path .append (os .path .join (os .path .dirname (__file__ ), "../tests/qre/" ))
41- from conftest import ExampleLogicalFactory , ExampleFactory # type: ignore
42-
4340 ctx = GateBased (gate_time = 50 , measurement_time = 100 ).context ()
4441
4542 # Hierarchical factory using from_components
46- query = SurfaceCode .q () * ExampleLogicalFactory .q (
47- source = SurfaceCode .q () * ExampleFactory .q ()
43+ query = (
44+ SurfaceCode .q ()
45+ * TwoDimensionalYokedSurfaceCode .q (source = SurfaceCode .q ())
46+ * Litinski19Factory .q ()
4847 )
4948
5049 number = 100
Original file line number Diff line number Diff line change 1414
1515@dataclass
1616class QIRApplication (Application [None ]):
17- """Application that produces a resource estimation trace from QIR code.
17+ """Application that produces a resource estimation trace from base profile QIR code.
1818
19- Accepts QIR input as LLVM IR text or bitcode.
19+ Accepts QIR input as LLVM IR text or bitcode. The QIR input must adhere to
20+ the base profile.
2021
2122 Attributes:
2223 input (str | bytes): QIR input as LLVM IR text (str) or
Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ jupyter = ["qsharp-widgets==0.0.0", "qsharp-jupyterlab==0.0.0"]
1717azure = [" azure-quantum>=3.8.0" ]
1818qiskit = [" qiskit>=1.2.2,<3.0.0" ]
1919cirq = [" cirq-core>=1.6.1,<1.7" , " cirq-ionq>=1.6.1,<1.7" ]
20- qre = [" cirq==1.6.1,<1.7" , " pandas>=2.1" ]
20+ qre = [" cirq-core ==1.6.1,<1.7" , " pandas>=2.1" , " ply>=3.11 " ]
2121all = [
2222 " qsharp-widgets==0.0.0" ,
2323 " azure-quantum>=3.8.0" ,
2424 " qiskit>=1.2.2,<3.0.0" ,
2525 " cirq-core>=1.6.1,<1.7" ,
2626 " cirq-ionq>=1.6.1,<1.7" ,
27+ " ply>=3.11" ,
2728 " qsharp-jupyterlab==0.0.0" ,
2829]
2930
You can’t perform that action at this time.
0 commit comments