Skip to content

Commit 6d801f2

Browse files
committed
Addressing reviewer comments.
1 parent ef339bb commit 6d801f2

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

source/pip/benchmarks/bench_qre.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
from dataclasses import dataclass, KW_ONLY, field
66
from qsharp.qre import linear_function, generic_function
77
from 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+
)
914
from qsharp.qre._enumeration import _enumerate_instances
1015

1116

@@ -32,19 +37,13 @@ class LargeDomain:
3237

3338

3439
def 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

source/pip/qsharp/qre/application/_qir.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414

1515
@dataclass
1616
class 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

source/qdk_package/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ jupyter = ["qsharp-widgets==0.0.0", "qsharp-jupyterlab==0.0.0"]
1717
azure = ["azure-quantum>=3.8.0"]
1818
qiskit = ["qiskit>=1.2.2,<3.0.0"]
1919
cirq = ["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"]
2121
all = [
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

0 commit comments

Comments
 (0)