From nobody Tue Aug 9 21:24:50 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M2R0y2TqBz4Y99C; Tue, 9 Aug 2022 21:24:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M2R0y1tpDz3yHF; Tue, 9 Aug 2022 21:24:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660080290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=71eZaRLx+a5jQDT9yqoaNilw0LodOwMcmNUqxZuif58=; b=CZOh6xehZpOqPiF3xKV5j6svSuEPNdSTf6GCxfF3N14uxf6BanBX5/7TfgUX2Q97NbxNGa 1r70ugwS7aknjXMTGJE5e6XtoM82L2+6HYy9/5VhvorGlkbQUCBu+JkZOnEpLS7DF0iZHA sCqcmbptlzWnuVgNkXZr8LNx1+Mh86w3O1xkTijHLe9O0/Yz70p4DX/M8fHR2oSb2SUtVB q6rNDuMvgYjuak5UERHBjO5eu1KI42FjwyaY6u3Wxv5CokTXvKya2sFa/gNqHN5p9QGJTA URXN4a/dXjbMzMDbydr3e/oMK/lJGy6+Od38UQwC0FE47hiAQFcUr/7Svqm9pg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M2R0y0vx2zmhG; Tue, 9 Aug 2022 21:24:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 279LOo8m045097; Tue, 9 Aug 2022 21:24:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 279LOop5045096; Tue, 9 Aug 2022 21:24:50 GMT (envelope-from git) Date: Tue, 9 Aug 2022 21:24:50 GMT Message-Id: <202208092124.279LOop5045096@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 713541e233d6 - main - science/py-qiskit-nature: New port: Natural science submodule for Quiskit framework for quantum computing List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 713541e233d6c0bc5f706e550b5c6144840bed79 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660080290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=71eZaRLx+a5jQDT9yqoaNilw0LodOwMcmNUqxZuif58=; b=BxNu52NTQuOaCT+eUu9CNRNScMLH1WNAD/U7vz14grn/uF8BeFCcNyqdRBRpJei/ptT2cj LhZpPhxYUPdNDuknlksdnXnRC76GqCjjUM40K2UbaN3289SRGHJQI5R5aF16Dt9dSYzROo MdOMmf23+vnuH6SoNwKCGD3Z73gmrcP6gnjEaRwn2UoS8fwZ/PafXlkVK1TdwRBsCUVYZB c2GkVvIi0aZcGGfXk23kByCbBfa5uvxct2d5dgJN1xTkWmG3/VaQid1LYac5OhQ9q3XYKi U2E+jM1sFAJ1WaIrLB19J0FMTja/lnK7lnJuPYo33CaO0AoNmJAFNPM/2XCEuQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660080290; a=rsa-sha256; cv=none; b=dSI3eaXEeeN7vIZ4dOMQA0cxZvv7Z5rCSd0hjpvVL5mElyqGdJFu7bRilNX71oLyy2CVSc vin+USAlf8y9qgbPdOuEEoZ59RlnNv0ESIAY3bVFyWAGuHl1RZq+3S/Chqi650FaC7y7Vp /Dxum3fCQJ/oPIsj1zD38awuHkR6XgEcmObEIPEHVpiJzoC+HDvzGkYB05gXT/W37QhIKu 0EQaVpkTAOfvFqdQr53VJXTqPRsbYc2GGKGXgu+GHL/NyFaequKd2Y/xLzmeoXC6OLmCuN 0S0PQoxd+MbSZSgAncC80YwT9Xk832FB3F5FG26Z9Bwx99mrTkrZXMoHK0Zuww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=713541e233d6c0bc5f706e550b5c6144840bed79 commit 713541e233d6c0bc5f706e550b5c6144840bed79 Author: Yuri Victorovich AuthorDate: 2022-08-09 21:24:07 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-09 21:24:47 +0000 science/py-qiskit-nature: New port: Natural science submodule for Quiskit framework for quantum computing --- science/Makefile | 1 + science/py-qiskit-nature/Makefile | 46 ++++++++++++++++++++++++++++++++++++++ science/py-qiskit-nature/distinfo | 3 +++ science/py-qiskit-nature/pkg-descr | 23 +++++++++++++++++++ science/py-qiskit/Makefile | 10 +++++---- 5 files changed, 79 insertions(+), 4 deletions(-) diff --git a/science/Makefile b/science/Makefile index 7f1bde19d29f..183fb939e6cf 100644 --- a/science/Makefile +++ b/science/Makefile @@ -342,6 +342,7 @@ SUBDIR += py-qiskit-aer SUBDIR += py-qiskit-ibm-provider SUBDIR += py-qiskit-ibmq-provider + SUBDIR += py-qiskit-nature SUBDIR += py-qiskit-optimization SUBDIR += py-qiskit-terra SUBDIR += py-qspin diff --git a/science/py-qiskit-nature/Makefile b/science/py-qiskit-nature/Makefile new file mode 100644 index 000000000000..9ac7f26270ef --- /dev/null +++ b/science/py-qiskit-nature/Makefile @@ -0,0 +1,46 @@ +PORTNAME= qiskit-nature +DISTVERSION= 0.4.0-29 +DISTVERSIONSUFFIX= -gfaacc94 +CATEGORIES= science python # quantum-computing, quantum-chemistry +#MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Natural science submodule for Quiskit framework for quantum computing + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}psutil>=5:sysutils/py-psutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}qiskit-terra>=0.20.0:science/py-qiskit-terra@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rustworkx>=0.10.1:math/py-rustworkx@${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} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} +QC_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyscf>0:science/py-pyscf@${PY_FLAVOR} # quantum-chemistry drivers, other supported drivers are PyQuante, PSI4 +BUILD_DEPENDS= ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} \ + ${QC_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 + +POST_PLIST= fix-plist + +post-patch: # project was renamed, see https://github.com/Qiskit/rustworkx/issues/656 + @${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} -i '' -e 's|retworkx|rustworkx|' + +post-install: # installs many binaries accessing commercial Gaussian software not available on FreeBSD, see https://github.com/Qiskit/qiskit-nature/issues/778 + @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name "qcmatrixio.cpython-*.so" -delete + +fix-plist: # see post-install + @${REINPLACE_CMD} -e "s|.*/qcmatrixio\.cpython-.*\.so$$||" ${TMPPLIST} + +.include diff --git a/science/py-qiskit-nature/distinfo b/science/py-qiskit-nature/distinfo new file mode 100644 index 000000000000..d89f65e3b30c --- /dev/null +++ b/science/py-qiskit-nature/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660075414 +SHA256 (Qiskit-qiskit-nature-0.4.0-29-gfaacc94_GH0.tar.gz) = 6a189b5729ceb703ae8d805aea880f6441b86aec427f91818de0be3b3461868c +SIZE (Qiskit-qiskit-nature-0.4.0-29-gfaacc94_GH0.tar.gz) = 4678066 diff --git a/science/py-qiskit-nature/pkg-descr b/science/py-qiskit-nature/pkg-descr new file mode 100644 index 000000000000..36cdb1b40940 --- /dev/null +++ b/science/py-qiskit-nature/pkg-descr @@ -0,0 +1,23 @@ +Qiskit [quiss-kit] is an open-source SDK for working with quantum computers +at the level of pulses, circuits, and application modules. + +Qiskit Nature is one of Qiskit components. Qiskit Nature is an open-source +framework which supports solving quantum mechanical natural science problems +using quantum computing algorithms. This includes finding ground and excited +states of electronic and vibrational structure problems, measuring the dipole +moments of molecular systems, solving the Ising and Fermi-Hubbard models on +lattices, and much more. + +The code comprises chemistry drivers, which when provided with a molecular +configuration will return one- and two-body integrals as well as other data that +is efficiently computed classically. This output data from a driver can then be +used as input in Qiskit Nature that contains logic which is able to translate +this into a form that is suitable for quantum algorithms. + +For the solution of electronic structure problems, the problem Hamiltonian is +first expressed in the second quantization formalism, comprising fermionic +excitation and annihilation operators. These can then be mapped to the qubit +formalism using a variety of mappings such as Jordan-Wigner, Parity, and more, +in readiness for the quantum computation. + +WWW: https://qiskit.org/ diff --git a/science/py-qiskit/Makefile b/science/py-qiskit/Makefile index 5ca42cd04fbd..d30fa0af83c1 100644 --- a/science/py-qiskit/Makefile +++ b/science/py-qiskit/Makefile @@ -1,6 +1,6 @@ PORTNAME= qiskit DISTVERSION= 0.37.1-4 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONSUFFIX= -gf178fcc98 CATEGORIES= science python # quantum-computing MASTER_SITES= CHEESESHOP @@ -16,11 +16,13 @@ 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} \ - ${PYTHON_PKGNAMEPREFIX}qiskit-machine-learning>0:misc/py-qiskit-machine-learning@${PY_FLAVOR} +OPT_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} \ + ${PYTHON_PKGNAMEPREFIX}qiskit-nature>0:science/py-qiskit-nature@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} -RUN_DEPENDS= ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} \ + ${OPT_DEPENDS} USES= python:3.7+ USE_PYTHON= distutils autoplist