aboutsummaryrefslogtreecommitdiff
path: root/science/py-dwave-gate
diff options
context:
space:
mode:
Diffstat (limited to 'science/py-dwave-gate')
-rw-r--r--science/py-dwave-gate/Makefile25
-rw-r--r--science/py-dwave-gate/distinfo3
-rw-r--r--science/py-dwave-gate/files/example.py3
-rw-r--r--science/py-dwave-gate/files/patch-pyproject.toml11
-rw-r--r--science/py-dwave-gate/pkg-descr2
5 files changed, 44 insertions, 0 deletions
diff --git a/science/py-dwave-gate/Makefile b/science/py-dwave-gate/Makefile
new file mode 100644
index 000000000000..cd726d2113cb
--- /dev/null
+++ b/science/py-dwave-gate/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= dwave-gate
+DISTVERSION= 0.3.4
+CATEGORIES= science python # quantum-computing
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= DWave: Gate model library
+WWW= https://github.com/dwavesystems/dwave-gate
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY}
+
+USES= python
+USE_PYTHON= pep517 cython3 autoplist pytest
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+.include <bsd.port.mk>
diff --git a/science/py-dwave-gate/distinfo b/science/py-dwave-gate/distinfo
new file mode 100644
index 000000000000..aeb63b7147d2
--- /dev/null
+++ b/science/py-dwave-gate/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1758999333
+SHA256 (dwave_gate-0.3.4.tar.gz) = 17e193da453724c427448e3d7beeb8260c804404ac0ab43ed2d0abcbb0d55b5e
+SIZE (dwave_gate-0.3.4.tar.gz) = 367210
diff --git a/science/py-dwave-gate/files/example.py b/science/py-dwave-gate/files/example.py
new file mode 100644
index 000000000000..1148e23e9b0a
--- /dev/null
+++ b/science/py-dwave-gate/files/example.py
@@ -0,0 +1,3 @@
+from tabu import TabuSampler
+response = TabuSampler().sample_ising({'a': -0.5, 'b': 1.0}, {('a', 'b'): -1})
+print(response)
diff --git a/science/py-dwave-gate/files/patch-pyproject.toml b/science/py-dwave-gate/files/patch-pyproject.toml
new file mode 100644
index 000000000000..02f8f28f6143
--- /dev/null
+++ b/science/py-dwave-gate/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2025-09-27 18:57:44 UTC
++++ pyproject.toml
+@@ -3,7 +3,7 @@ requires = [
+ "setuptools>=46.4.0", # PEP-420 support, PEP-517/518 support
+ "wheel>=0.30.0", # limited python api support
+ "cython~=3.0",
+- "numpy~=2.0",
++ "numpy",
+ ]
+ build-backend = "setuptools.build_meta"
+
diff --git a/science/py-dwave-gate/pkg-descr b/science/py-dwave-gate/pkg-descr
new file mode 100644
index 000000000000..929fb4be2268
--- /dev/null
+++ b/science/py-dwave-gate/pkg-descr
@@ -0,0 +1,2 @@
+dwave-gate is a software package for constructing, modifying and running quantum
+circuits on the provided state-vector simulator.