git: b6b4009e6400 - main - science/py-tweedledum: New port: Library for analysis, compilation, synthesis of quantum circuits
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Aug 2022 03:53:01 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b6b4009e64001d0cf759bf790bab305c7e88bedd
commit b6b4009e64001d0cf759bf790bab305c7e88bedd
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-08 03:37:54 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-08 03:37:54 +0000
science/py-tweedledum: New port: Library for analysis, compilation, synthesis of quantum circuits
---
science/Makefile | 1 +
science/py-tweedledum/Makefile | 22 ++++++++++++++++++++++
science/py-tweedledum/distinfo | 3 +++
science/py-tweedledum/pkg-descr | 6 ++++++
4 files changed, 32 insertions(+)
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