From nobody Sun Aug 14 23:00:21 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 4M5Xts5JWzz4Ys3H; Sun, 14 Aug 2022 23:00:21 +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 4M5Xts4nSQz42L5; Sun, 14 Aug 2022 23:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660518021; 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=uHkriigbLg8ZNtK3OArMHMZIetQSEP7UzZEbZC6CPoI=; b=SX8315kdKhscIuDZ4OX0q2WeefLRaXrBqDCY589BHFLELLU66xED6R0hhRFy37HW1BtZOR C4opdiRF6ZMKsbrHdHXjDtqI+7d2suqcQQNtsNr8eivCWcEOGXXvtpitObmdfHPdao1QBW qs1EvCnZYp0li02ryS7VccTRYhNcnIWA0huxCxlW6MbiJyIPRf8y2LMMV/utqavbPL1L10 Go9bSj+KstlWe8hA8VP34FEW9uhf0uQcmo9BflKxnZJkY//WgmkSbBwe1uyzXqBx300O7g sb8U1qssQyHmE+AFRx0ymUI+bKaGjdcsjmEeGTPqGccJjnHc3uR+b7dYjHAalg== 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 4M5Xts3r5Nz17M3; Sun, 14 Aug 2022 23:00:21 +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 27EN0Lgq047978; Sun, 14 Aug 2022 23:00:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27EN0LTF047972; Sun, 14 Aug 2022 23:00:21 GMT (envelope-from git) Date: Sun, 14 Aug 2022 23:00:21 GMT Message-Id: <202208142300.27EN0LTF047972@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: 6310de66509d - main - science/py-penaltymodel: New port: DWave: Utilities and interfaces for using penalty models 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: 6310de66509dd971138bf4c364460a2df83b180c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660518021; 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=uHkriigbLg8ZNtK3OArMHMZIetQSEP7UzZEbZC6CPoI=; b=Bgx/UwhPA2HrvPWc5QtAKfjBk+gZugvDDyZ+rIjz4f155BKH9COiPJ3pWu3j67t01vNpjA a+q3AFVdU/oF7xd/hwKQR+/ElXbl9emyNsPqe53oFSL4GMMkNZXhDv2c3sOhe2zHsETUyv tUuJo/hRr+LJCOqp4aiPTGFXIBHsqHwXu/qeQvI53HIIriYAvYXg5w8JyLMFfY5FbP4YCP 6EM6OrmripR0cVcSzYWwbnfDXyorwwUrt/648JrSxL43R1UK0FXCRwA9IVZhvx5P1K6ODY rhAYEOHMWtMORi+SbMR+p824t4bWw2u1cm7vXO51lOrjziOoHrWRpg4BTMVlkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660518021; a=rsa-sha256; cv=none; b=aCc3BGm84xIUKS6XtpyEQjiWjX3ny35tDWI8b1X8QRMOBc4iEpznMLfcaCF1CryeMWApOn lyzTl01biR5Twdz2FEpJEBp5D+xgeWEc0/J/IrHdITR0ynEy3hYtRTAHxZhQjeqnUWRAOT SPXU/Q/jnkN3eLbAkFH8yfARcJ98ZqhpGNFKZHiDfIWR+939M3EeyzWgInqXOcqdeiEfj+ Xc90EuHQZ4ohqbu+BYf8YF7D9P02PTwnG/aF5odxo1QhzFF1XTaQv/WZC9MSEagwAoCyBQ DX5xkgOvzFBKiT1EfJ+tss8m1OPuQM4UmO+/7SC/q4Vd/z0f5mXpH+L+0edd1g== 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=6310de66509dd971138bf4c364460a2df83b180c commit 6310de66509dd971138bf4c364460a2df83b180c Author: Yuri Victorovich AuthorDate: 2022-08-14 22:13:51 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-14 23:00:18 +0000 science/py-penaltymodel: New port: DWave: Utilities and interfaces for using penalty models --- science/Makefile | 1 + science/py-penaltymodel/Makefile | 32 ++++++++++++++++++++++++++++++++ science/py-penaltymodel/distinfo | 3 +++ science/py-penaltymodel/pkg-descr | 7 +++++++ 4 files changed, 43 insertions(+) diff --git a/science/Makefile b/science/Makefile index 365949ba8278..94401dcf6aec 100644 --- a/science/Makefile +++ b/science/Makefile @@ -328,6 +328,7 @@ SUBDIR += py-openpiv SUBDIR += py-paida SUBDIR += py-paramz + SUBDIR += py-penaltymodel SUBDIR += py-phono3py SUBDIR += py-phonopy SUBDIR += py-pupynere diff --git a/science/py-penaltymodel/Makefile b/science/py-penaltymodel/Makefile new file mode 100644 index 000000000000..b3b969eff9dd --- /dev/null +++ b/science/py-penaltymodel/Makefile @@ -0,0 +1,32 @@ +PORTNAME= penaltymodel +DISTVERSION= 1.0.2 +CATEGORIES= science python # quantum-computing +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= DWave: Utilities and interfaces for using penalty models + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>=0.10.10:science/py-dimod@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}homebase>=1.0.1:devel/py-homebase@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}networkx>=2.4:math/py-networkx@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}reno>0:textproc/py-reno@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>=1.7.3:science/py-scipy@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} + +USES= python:3.7+ +USE_PYTHON= distutils cython autoplist unittest + +USE_GITHUB= yes +GH_ACCOUNT= dwavesystems + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/tests + +NO_ARCH= yes + +.include diff --git a/science/py-penaltymodel/distinfo b/science/py-penaltymodel/distinfo new file mode 100644 index 000000000000..7511c7706773 --- /dev/null +++ b/science/py-penaltymodel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660513321 +SHA256 (dwavesystems-penaltymodel-1.0.2_GH0.tar.gz) = 8246ea0cc56e6965719f9c2684ff7bbdf2015f933cecd475ac7dd5028d7803b9 +SIZE (dwavesystems-penaltymodel-1.0.2_GH0.tar.gz) = 37639 diff --git a/science/py-penaltymodel/pkg-descr b/science/py-penaltymodel/pkg-descr new file mode 100644 index 000000000000..176197dd3829 --- /dev/null +++ b/science/py-penaltymodel/pkg-descr @@ -0,0 +1,7 @@ +penaltymodel is a set of utilities and interfaces for using penalty models. + +One approach to solve a constraint satisfaction problem (CSP) using an Ising +model or a QUBO, is to map each individual constraint in the CSP to a 'small' +Ising model or QUBO. This mapping is called a penalty model. + +WWW: https://docs.ocean.dwavesys.com/projects/penaltymodel/en/latest/