git: 7a1a1ec4aa5e - main - misc/py-qiskit-machine-learning: New port: Quantum Machine Learning for Quiskit framework for quantum computing

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 09 Aug 2022 19:35:11 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7a1a1ec4aa5e062830accca9d25333b97e31e876

commit 7a1a1ec4aa5e062830accca9d25333b97e31e876
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-09 19:12:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-09 19:35:07 +0000

    misc/py-qiskit-machine-learning: New port: Quantum Machine Learning for Quiskit framework for quantum computing
---
 misc/Makefile                             |  1 +
 misc/py-qiskit-machine-learning/Makefile  | 32 +++++++++++++++++++++++++++++++
 misc/py-qiskit-machine-learning/distinfo  |  3 +++
 misc/py-qiskit-machine-learning/pkg-descr | 12 ++++++++++++
 science/py-qiskit/Makefile                |  5 ++++-
 5 files changed, 52 insertions(+), 1 deletion(-)

diff --git a/misc/Makefile b/misc/Makefile
index 1dbe785ac433..029adc9509a1 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -412,6 +412,7 @@
     SUBDIR += py-pyprind
     SUBDIR += py-python-geohash
     SUBDIR += py-python-utils
+    SUBDIR += py-qiskit-machine-learning
     SUBDIR += py-scikit-fusion
     SUBDIR += py-serverfiles
     SUBDIR += py-soapy_power
diff --git a/misc/py-qiskit-machine-learning/Makefile b/misc/py-qiskit-machine-learning/Makefile
new file mode 100644
index 000000000000..5bc5b3708add
--- /dev/null
+++ b/misc/py-qiskit-machine-learning/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	qiskit-machine-learning
+DISTVERSION=	0.4.0-30
+DISTVERSIONSUFFIX=	-g149a2ef
+CATEGORIES=	misc python # quantum-computing, machine-learning
+#MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Quantum Machine Learning for Quiskit framework for quantum computing
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dill>=0.3.4:devel/py-dill@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}fastdtw>0:math/py-fastdtw@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}psutil>=5:sysutils/py-psutil@${PY_FLAVOR} \
+		${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}qiskit-terra>=0.20.0:science/py-qiskit-terra@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scikit-learn>=0.20.0:science/py-scikit-learn@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.4:science/py-scipy@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_DEPENDS}
+RUN_DEPENDS=	${PY_DEPENDS}
+
+USES=		python:3.7+
+USE_PYTHON=	distutils autoplist pytest # several tests fail with "No module named 'threadpoolctl'", see https://reviews.freebsd.org/D35513
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Qiskit
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-qiskit-machine-learning/distinfo b/misc/py-qiskit-machine-learning/distinfo
new file mode 100644
index 000000000000..a4ca45f1c4a4
--- /dev/null
+++ b/misc/py-qiskit-machine-learning/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660069923
+SHA256 (Qiskit-qiskit-machine-learning-0.4.0-30-g149a2ef_GH0.tar.gz) = b648d0df586275bcf61092ea29f73c68449bee7752b4acb42cb3facfa4a97435
+SIZE (Qiskit-qiskit-machine-learning-0.4.0-30-g149a2ef_GH0.tar.gz) = 975283
diff --git a/misc/py-qiskit-machine-learning/pkg-descr b/misc/py-qiskit-machine-learning/pkg-descr
new file mode 100644
index 000000000000..ff2533a1dd88
--- /dev/null
+++ b/misc/py-qiskit-machine-learning/pkg-descr
@@ -0,0 +1,12 @@
+Qiskit [quiss-kit] is an open-source SDK for working with quantum computers
+at the level of pulses, circuits, and application modules.
+
+Qiskit Machine Learning is one of Qiskit components. It introduces fundamental
+computational building blocks - such as Quantum Kernels and Quantum Neural
+Networks - used in different applications, including classification and
+regression. On the one hand, this design is very easy to use and allows users to
+rapidly prototype a first model without deep quantum computing knowledge. On the
+other hand, Qiskit Machine Learning is very flexible, and users can easily
+extend it to support cutting-edge quantum machine learning research.
+
+WWW: https://qiskit.org/
diff --git a/science/py-qiskit/Makefile b/science/py-qiskit/Makefile
index 0b4945ed6703..5ca42cd04fbd 100644
--- a/science/py-qiskit/Makefile
+++ b/science/py-qiskit/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	qiskit
 DISTVERSION=	0.37.1-4
+PORTREVISION=	1
 DISTVERSIONSUFFIX=	-gf178fcc98
 CATEGORIES=	science python # quantum-computing
 MASTER_SITES=	CHEESESHOP
@@ -15,7 +16,9 @@ PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}qiskit-aer>0:science/py-qiskit-aer@${PY_FLAVO
 		${PYTHON_PKGNAMEPREFIX}qiskit-terra>0:science/py-qiskit-terra@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}qiskit-ibmq-provider>0:science/py-qiskit-ibmq-provider@${PY_FLAVOR}
 # optional submodules (list: https://github.com/Qiskit/qiskit#optional-components)
-PY_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}qiskit-optimization>0:science/py-qiskit-optimization@${PY_FLAVOR}
+PY_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}qiskit-optimization>0:science/py-qiskit-optimization@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}qiskit-machine-learning>0:misc/py-qiskit-machine-learning@${PY_FLAVOR}
+
 BUILD_DEPENDS=	${PY_DEPENDS}
 RUN_DEPENDS=	${PY_DEPENDS}