aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-08-08 03:37:54 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-08-08 03:37:54 +0000
commitb6b4009e64001d0cf759bf790bab305c7e88bedd (patch)
tree980fcdf793360e3d727fdd050a774ecb47199626
parentbd91788f3b9f5af0a5bb0b9f134b199b1c7c3002 (diff)
science/py-tweedledum: New port: Library for analysis, compilation, synthesis of quantum circuits
-rw-r--r--science/Makefile1
-rw-r--r--science/py-tweedledum/Makefile22
-rw-r--r--science/py-tweedledum/distinfo3
-rw-r--r--science/py-tweedledum/pkg-descr6
4 files changed, 32 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 5442d319d9fa..96cdd1a48c89 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -361,6 +361,7 @@
SUBDIR += py-thewalrus
SUBDIR += py-tobler
SUBDIR += py-trainstation
+ SUBDIR += py-tweedledum
SUBDIR += py-veusz
SUBDIR += pybrain
SUBDIR += pynn
diff --git a/science/py-tweedledum/Makefile b/science/py-tweedledum/Makefile
new file mode 100644
index 000000000000..793130e7b7d7
--- /dev/null
+++ b/science/py-tweedledum/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= tweedledum
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.1.1
+CATEGORIES= science python # quantum-computing
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Library for analysis, compilation, synthesis of quantum circuits
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \
+ cmake:devel/cmake
+
+USES= compiler:c++17-lang python
+USE_PYTHON= distutils autoplist pytest # tests fail to run, see https://github.com/boschmitt/tweedledum/issues/176
+
+USE_GITHUB= yes
+GH_ACCOUNT= boschmitt
+
+.include <bsd.port.mk>
diff --git a/science/py-tweedledum/distinfo b/science/py-tweedledum/distinfo
new file mode 100644
index 000000000000..9695e73327fe
--- /dev/null
+++ b/science/py-tweedledum/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659924254
+SHA256 (boschmitt-tweedledum-v1.1.1_GH0.tar.gz) = ba1c79808dfae1cf65a06eb6c5aeee4daf9e826386c582b5fea0c5c634f4d15b
+SIZE (boschmitt-tweedledum-v1.1.1_GH0.tar.gz) = 5105832
diff --git a/science/py-tweedledum/pkg-descr b/science/py-tweedledum/pkg-descr
new file mode 100644
index 000000000000..9a92e5f057f8
--- /dev/null
+++ b/science/py-tweedledum/pkg-descr
@@ -0,0 +1,6 @@
+tweedledum is a library for synthesis, compilation, and optimization of quantum
+circuits. The library is written to be scalable up to problem sizes in which
+quantum circuits outperform classical ones. Also, it is meant to be used both
+independently and alongside established tools.
+
+WWW: https://github.com/boschmitt/tweedledum