git: d8c0758d48b5 - main - misc/py-SQSnobFit: New port: Stable Noisy Optimization by Branch and FIT quantum computer algorithm

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 12 Nov 2023 04:49:12 UTC
The branch main has been updated by yuri:

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

commit d8c0758d48b5e421f3f5cf9ffc7fa30171cbb149
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-11 21:56:01 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-12 04:49:07 +0000

    misc/py-SQSnobFit: New port: Stable Noisy Optimization by Branch and FIT quantum computer algorithm
---
 misc/Makefile               |  1 +
 misc/py-SQSnobFit/Makefile  | 25 +++++++++++++++++++++++++
 misc/py-SQSnobFit/distinfo  |  3 +++
 misc/py-SQSnobFit/pkg-descr |  4 ++++
 4 files changed, 33 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index b086f6252610..59d8b25c696d 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -396,6 +396,7 @@
     SUBDIR += py-QSpectrumAnalyzer
     SUBDIR += py-SQCommon
     SUBDIR += py-SQImFil
+    SUBDIR += py-SQSnobFit
     SUBDIR += py-SimpleSoapy
     SUBDIR += py-SoapySDR
     SUBDIR += py-alive-progress
diff --git a/misc/py-SQSnobFit/Makefile b/misc/py-SQSnobFit/Makefile
new file mode 100644
index 000000000000..5b898d8de9ad
--- /dev/null
+++ b/misc/py-SQSnobFit/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	SQSnobFit
+DISTVERSION=	0.4.5
+CATEGORIES=	misc math python # quantum-computing
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Stable Noisy Optimization by Branch and FIT quantum computer algorithm
+WWW=		https://qat4chem.lbl.gov/software
+
+LICENSE=	BSD3CLAUSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}SQCommon>0:misc/py-SQCommon@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-SQSnobFit/distinfo b/misc/py-SQSnobFit/distinfo
new file mode 100644
index 000000000000..477393c3031d
--- /dev/null
+++ b/misc/py-SQSnobFit/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699738258
+SHA256 (SQSnobFit-0.4.5.tar.gz) = de652aca1fa998dc2235b18d4caec5a225847d40b411f0351fab6f2d4877300f
+SIZE (SQSnobFit-0.4.5.tar.gz) = 29105
diff --git a/misc/py-SQSnobFit/pkg-descr b/misc/py-SQSnobFit/pkg-descr
new file mode 100644
index 000000000000..36638fd86d3a
--- /dev/null
+++ b/misc/py-SQSnobFit/pkg-descr
@@ -0,0 +1,4 @@
+SnobFit is intended for optimizing on derivative-free, noisy, blackbox
+functions. This modified version has preset defaults as intended for hybrid
+quantum-classical algorithms run on Noisy Intermediate Scale Quantum (NISQ)
+computers.