Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit d120cd5

Browse files
committed
fixing default arguments
1 parent 61c9819 commit d120cd5

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ dependencies = [
1717

1818
[project.optional-dependencies]
1919
pyqrack = [
20-
"pyqrack>=1.35.10",
20+
"pyqrack~=1.35.10",
2121
]
2222
pyqrack-cpu = [
23-
"pyqrack-cpu>=1.35.10",
23+
"pyqrack-cpu~=1.35.10",
2424
]
2525
pyqrack-cuda = [
26-
"pyqrack-cuda>=1.35.10",
26+
"pyqrack-cuda~=1.35.10",
2727
]
2828

2929
[build-system]

src/bloqade/pyqrack/base.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import abc
23
import typing
34
from dataclasses import field, dataclass
@@ -28,14 +29,16 @@ def _default_pyqrack_args() -> PyQrackOptions:
2829
return PyQrackOptions(
2930
qubitCount=0,
3031
isTensorNetwork=False,
31-
isSchmidtDecomposeMulti=False,
32-
isSchmidtDecompose=False,
32+
isSchmidtDecomposeMulti=True,
33+
isSchmidtDecompose=True,
3334
isStabilizerHybrid=False,
3435
isBinaryDecisionTree=True,
35-
isPaged=False,
36-
isCpuGpuHybrid=False,
37-
isOpenCL=False,
38-
isHostPointer=False,
36+
isPaged=True,
37+
isCpuGpuHybrid=True,
38+
isOpenCL=True,
39+
isHostPointer=(
40+
True if os.environ.get("PYQRACK_HOST_POINTER_DEFAULT_ON") else False
41+
),
3942
)
4043

4144

0 commit comments

Comments
 (0)