public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2022-08-08  6:08 Sam James
  0 siblings, 0 replies; 30+ messages in thread
From: Sam James @ 2022-08-08  6:08 UTC (permalink / raw
  To: gentoo-commits

commit:     3d0989df38caadb02beaa32f15a9a7b57a1d848d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  8 04:31:01 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug  8 06:08:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d0989df

dev-python/qiskit-aer: update maintainers

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/qiskit-aer/metadata.xml | 38 +++++++++++++++++++++-----------------
 1 file changed, 21 insertions(+), 17 deletions(-)

diff --git a/dev-python/qiskit-aer/metadata.xml b/dev-python/qiskit-aer/metadata.xml
index 766391b439a3..2e3184f214d5 100644
--- a/dev-python/qiskit-aer/metadata.xml
+++ b/dev-python/qiskit-aer/metadata.xml
@@ -1,21 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <!-- comaintainers-welcomed -->
-  <maintainer type="person" proxied="yes">
-    <email>gaboroszkar@protonmail.com</email>
-    <name>Gábor Oszkár Dénes</name>
-  </maintainer>
-  <maintainer type="project" proxied="proxy">
-    <email>proxy-maint@gentoo.org</email>
-    <name>Proxy Maintainers</name>
-  </maintainer>
-  <longdescription>
-    Qiskit is an open-source framework for working with noisy quantum computers at the level of pulses, circuits, and algorithms.
-    Qiskit is made up of elements that each work together to enable quantum computing. This element is Aer, which provides high-performance quantum computing simulators with realistic noise models.
-  </longdescription>
-  <upstream>
-    <remote-id type="github">Qiskit/qiskit-aer</remote-id>
-    <remote-id type="pypi">qiskit-aer</remote-id>
-  </upstream>
+	<!-- comaintainers-welcomed -->
+	<maintainer type="person" proxied="yes">
+		<email>gaboroszkar@protonmail.com</email>
+		<name>Gábor Oszkár Dénes</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>sci@gentoo.org</email>
+		<name>Gentoo Science Project</name>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<longdescription>
+	Qiskit is an open-source framework for working with noisy quantum computers at the level of pulses, circuits, and algorithms.
+	Qiskit is made up of elements that each work together to enable quantum computing. This element is Aer, which provides high-performance quantum computing simulators with realistic noise models.
+	</longdescription>
+	<upstream>
+		<remote-id type="github">Qiskit/qiskit-aer</remote-id>
+		<remote-id type="pypi">qiskit-aer</remote-id>
+	</upstream>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2022-10-30 20:41 Sam James
  0 siblings, 0 replies; 30+ messages in thread
From: Sam James @ 2022-10-30 20:41 UTC (permalink / raw
  To: gentoo-commits

commit:     c29c30829b1625aa1da865962656ce3eb7bd032c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 30 20:30:21 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 30 20:41:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c29c3082

dev-python/qiskit-aer: add 0.11.1

Bug: https://bugs.gentoo.org/865129
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |  1 +
 dev-python/qiskit-aer/qiskit-aer-0.11.1.ebuild | 92 ++++++++++++++++++++++++++
 2 files changed, 93 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 1dd95accffd1..c2048858b315 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1 +1,2 @@
 DIST qiskit-aer-0.10.3.gh.tar.gz 6657490 BLAKE2B 443f7df2259c720fb93a60659da9b1cded25f9dbdf585bd0322e9f4effe4c5955daf6587d6c3964ab4a7e4a8bf6270f857abae1cf4e6b0718801daa6a96c2aec SHA512 c882624bac373566b003a01fffa6963d4ad8796ce18786b50ef85350daac26814c147b36067eb6fce4f264919b3680246e767b5c13ac338817fd394620392079
+DIST qiskit-aer-0.11.1.gh.tar.gz 6699343 BLAKE2B 3795e1f71914bbc0074a2eac10a82a28f3171d50f292a13dcb705f62daa5fa332a1eabd52391c1b168a822ca6428feb79fe08bb7c93cfd2f7ee5b0d38fed012b SHA512 7880f2ee99f34eca285b9e7cd096981db2f981d41c54881c4036e2745e4af1185b740d93cd157b83ce4adaf8c207c9c063b86e9a1fa514d1388437d6f33e219f

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.11.1.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.11.1.ebuild
new file mode 100644
index 000000000000..826271003482
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.11.1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="https://github.com/Qiskit/qiskit-aer"
+SRC_URI="https://github.com/Qiskit/qiskit-aer/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+COMMON_DEPEND="
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.5.0
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]"
+
+BDEPEND="
+	${COMMON_DEPEND}
+	>dev-util/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+	)"
+
+RDEPEND="
+	${COMMON_DEPEND}
+	>=dev-python/qiskit-terra-0.21.0[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
+
+# Remove cmake dependency from setup.py because of
+# invalid dependency description. We put this dependency check in BDEPEND.
+PATCHES=( "${FILESDIR}/qiskit-aer-0.10.3-remove-cmake-dependency.patch" )
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [ $? -ne 0 ]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	# We have to hide the source code directory so tests
+	# do not use these, but instead the compiled library.
+	mv qiskit_aer qiskit_aer.hidden || die
+	epytest -s
+	mv qiskit_aer.hidden qiskit_aer || die
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2022-11-06 14:06 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2022-11-06 14:06 UTC (permalink / raw
  To: gentoo-commits

commit:     d8ad9d04865e1a1f4a6c754a1ec2017bca93dfec
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  6 11:44:30 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov  6 14:06:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8ad9d04

dev-python/qiskit-aer: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |  1 -
 dev-python/qiskit-aer/qiskit-aer-0.10.3.ebuild | 92 --------------------------
 2 files changed, 93 deletions(-)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index c2048858b315..f31df6058b1b 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,2 +1 @@
-DIST qiskit-aer-0.10.3.gh.tar.gz 6657490 BLAKE2B 443f7df2259c720fb93a60659da9b1cded25f9dbdf585bd0322e9f4effe4c5955daf6587d6c3964ab4a7e4a8bf6270f857abae1cf4e6b0718801daa6a96c2aec SHA512 c882624bac373566b003a01fffa6963d4ad8796ce18786b50ef85350daac26814c147b36067eb6fce4f264919b3680246e767b5c13ac338817fd394620392079
 DIST qiskit-aer-0.11.1.gh.tar.gz 6699343 BLAKE2B 3795e1f71914bbc0074a2eac10a82a28f3171d50f292a13dcb705f62daa5fa332a1eabd52391c1b168a822ca6428feb79fe08bb7c93cfd2f7ee5b0d38fed012b SHA512 7880f2ee99f34eca285b9e7cd096981db2f981d41c54881c4036e2745e4af1185b740d93cd157b83ce4adaf8c207c9c063b86e9a1fa514d1388437d6f33e219f

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.10.3.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.10.3.ebuild
deleted file mode 100644
index 3fc6e2707460..000000000000
--- a/dev-python/qiskit-aer/qiskit-aer-0.10.3.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
-HOMEPAGE="https://github.com/Qiskit/qiskit-aer"
-SRC_URI="https://github.com/Qiskit/qiskit-aer/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
-# because importing library causes an error.
-# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
-# Using sci-libs/openblas instead here,
-# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
-COMMON_DEPEND="
-	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
-	>=dev-cpp/nlohmann_json-3.1.1
-	>=dev-libs/spdlog-1.5.0
-	>=dev-cpp/muParserX-4.0.8
-	virtual/cblas[eselect-ldso]
-	sci-libs/openblas[eselect-ldso]"
-
-BDEPEND="
-	${COMMON_DEPEND}
-	>dev-util/cmake-3.17
-	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
-	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
-	test? (
-		dev-python/ddt[${PYTHON_USEDEP}]
-		dev-python/fixtures[${PYTHON_USEDEP}]
-	)"
-
-RDEPEND="
-	${COMMON_DEPEND}
-	>=dev-python/qiskit-terra-0.19.1[${PYTHON_USEDEP}]
-	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]"
-
-distutils_enable_tests pytest
-
-# Remove cmake dependency from setup.py because of
-# invalid dependency description. We put this dependency check in BDEPEND.
-PATCHES=( "${FILESDIR}/qiskit-aer-0.10.3-remove-cmake-dependency.patch" )
-
-check_openblas() {
-	local libdir=$(get_libdir) me="openblas"
-
-	# check blas
-	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
-	if [[ ${current_blas} != "${me}" ]]; then
-		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
-		eerror "To use qiskit-aer, you have to issue (as root):"
-		eerror "\t eselect blas set ${libdir} ${me}"
-		return 1
-	fi
-	return 0
-}
-
-pkg_setup() {
-	if use test; then
-		check_openblas
-		if [ $? -ne 0 ]; then
-			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
-		fi
-	fi
-}
-
-python_prepare_all() {
-	export DISABLE_CONAN="ON"
-	export DISABLE_DEPENDENCY_INSTALL="ON"
-	distutils-r1_python_prepare_all
-}
-
-python_test() {
-	# We have to hide the source code directory so tests
-	# do not use these, but instead the compiled library.
-	mv qiskit qiskit.hidden || die
-	epytest
-	mv qiskit.hidden qiskit || die
-}
-
-pkg_postinst() {
-	check_openblas
-}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2022-11-24  9:50 Sam James
  0 siblings, 0 replies; 30+ messages in thread
From: Sam James @ 2022-11-24  9:50 UTC (permalink / raw
  To: gentoo-commits

commit:     3226753bd2cd27677991ba2bf4ec4eb2182f1253
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 24 09:20:23 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 24 09:50:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3226753b

dev-python/qiskit-aer: don't install junk to /usr

scikit-build bug.

Closes: https://bugs.gentoo.org/858128
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...qiskit-aer-0.11.1.ebuild => qiskit-aer-0.11.1-r1.ebuild} | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.11.1.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.11.1-r1.ebuild
similarity index 85%
rename from dev-python/qiskit-aer/qiskit-aer-0.11.1.ebuild
rename to dev-python/qiskit-aer/qiskit-aer-0.11.1-r1.ebuild
index 826271003482..5459774c8dd3 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.11.1.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.11.1-r1.ebuild
@@ -76,6 +76,8 @@ pkg_setup() {
 python_prepare_all() {
 	export DISABLE_CONAN="ON"
 	export DISABLE_DEPENDENCY_INSTALL="ON"
+	#export SKBUILD_CONFIGURE_OPTIONS=""
+
 	distutils-r1_python_prepare_all
 }
 
@@ -87,6 +89,17 @@ python_test() {
 	mv qiskit_aer.hidden qiskit_aer || die
 }
 
+python_install_all() {
+	distutils-r1_python_install_all
+
+	# Remove bits we don't want installed (bug in scikit-build)
+	# bug #858128
+	# https://github.com/Qiskit/qiskit-aer/issues/1457
+	# https://github.com/Qiskit/qiskit-aer/issues/1574
+	# https://github.com/scikit-build/scikit-build/issues/590
+	rm -r "${ED}"/usr/{CMakeLists.txt,MANIFEST.in,README.md,cmake,contrib,pyproject.toml,src} || die
+}
+
 pkg_postinst() {
 	check_openblas
 }


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2022-12-08  5:19 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2022-12-08  5:19 UTC (permalink / raw
  To: gentoo-commits

commit:     d132b6ee57130c2e5844d05bc4b3d671a7ac2745
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  7 15:48:57 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Dec  8 05:18:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d132b6ee

dev-python/qiskit-aer: Bump to 0.11.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 +
 dev-python/qiskit-aer/qiskit-aer-0.11.2.ebuild | 104 +++++++++++++++++++++++++
 2 files changed, 105 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index f31df6058b1b..639c3afdf999 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1 +1,2 @@
 DIST qiskit-aer-0.11.1.gh.tar.gz 6699343 BLAKE2B 3795e1f71914bbc0074a2eac10a82a28f3171d50f292a13dcb705f62daa5fa332a1eabd52391c1b168a822ca6428feb79fe08bb7c93cfd2f7ee5b0d38fed012b SHA512 7880f2ee99f34eca285b9e7cd096981db2f981d41c54881c4036e2745e4af1185b740d93cd157b83ce4adaf8c207c9c063b86e9a1fa514d1388437d6f33e219f
+DIST qiskit-aer-0.11.2.gh.tar.gz 6707283 BLAKE2B ae32a469d23a31f202b9f970c59e9efb76c290243bce6179b0a58590d671f6dec0428245131e7cb2966b818dae9fbe7e7078a63fac107572e9e7d4a66e47a539 SHA512 48b28f6c54c898bb3984062ec772373e90899fd436c8e00f0c4abd57b6b98ea6c647283445fe551bd516483b66d25c9861ef519f01a0d1ddc6b3ddbce07bc56a

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.11.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.11.2.ebuild
new file mode 100644
index 000000000000..922051220ec2
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.11.2.ebuild
@@ -0,0 +1,104 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="
+	https://github.com/Qiskit/qiskit-aer/
+	https://pypi.org/project/qiskit-aer/
+"
+SRC_URI="
+	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+DEPEND="
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.5.0
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]
+"
+
+BDEPEND="
+	>=dev-util/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+	)
+"
+
+RDEPEND="
+	${DEPEND}
+	>=dev-python/qiskit-terra-0.21.0[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+# Remove cmake dependency from setup.py because of
+# invalid dependency description. We put this dependency check in BDEPEND.
+PATCHES=( "${FILESDIR}/qiskit-aer-0.10.3-remove-cmake-dependency.patch" )
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [ $? -ne 0 ]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	#export SKBUILD_CONFIGURE_OPTIONS=""
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# TODO
+		test/terra/states/test_aer_statevector.py::TestAerStatevector::test_number_to_latex_terms
+	)
+
+	rm -rf qiskit_aer || die
+	epytest -s
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2022-12-21 23:19 Sam James
  0 siblings, 0 replies; 30+ messages in thread
From: Sam James @ 2022-12-21 23:19 UTC (permalink / raw
  To: gentoo-commits

commit:     501fc56fdc7510579ae72608299ae3614b53e40a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 21 23:11:40 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 21 23:19:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=501fc56f

dev-python/qiskit-aer: add subslot dep on dev-libs/spdlog

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{qiskit-aer-0.11.1-r1.ebuild => qiskit-aer-0.11.1-r2.ebuild}        | 2 +-
 .../{qiskit-aer-0.11.2.ebuild => qiskit-aer-0.11.2-r1.ebuild}           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.11.1-r1.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.11.1-r2.ebuild
similarity index 99%
rename from dev-python/qiskit-aer/qiskit-aer-0.11.1-r1.ebuild
rename to dev-python/qiskit-aer/qiskit-aer-0.11.1-r2.ebuild
index 5459774c8dd3..81f4d3f35be1 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.11.1-r1.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.11.1-r2.ebuild
@@ -24,7 +24,7 @@ KEYWORDS="~amd64"
 COMMON_DEPEND="
 	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
 	>=dev-cpp/nlohmann_json-3.1.1
-	>=dev-libs/spdlog-1.5.0
+	>=dev-libs/spdlog-1.5.0:=
 	>=dev-cpp/muParserX-4.0.8
 	virtual/cblas[eselect-ldso]
 	sci-libs/openblas[eselect-ldso]"

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.11.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.11.2-r1.ebuild
similarity index 98%
rename from dev-python/qiskit-aer/qiskit-aer-0.11.2.ebuild
rename to dev-python/qiskit-aer/qiskit-aer-0.11.2-r1.ebuild
index 922051220ec2..8e63d262a52f 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.11.2.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.11.2-r1.ebuild
@@ -30,7 +30,7 @@ KEYWORDS="~amd64"
 DEPEND="
 	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
 	>=dev-cpp/nlohmann_json-3.1.1
-	>=dev-libs/spdlog-1.5.0
+	>=dev-libs/spdlog-1.5.0:=
 	>=dev-cpp/muParserX-4.0.8
 	virtual/cblas[eselect-ldso]
 	sci-libs/openblas[eselect-ldso]


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-01-27 20:10 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-01-27 20:10 UTC (permalink / raw
  To: gentoo-commits

commit:     f5b7dd3a762440a3ed5c16ccac73003adb6353ea
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 27 20:06:09 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 27 20:09:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5b7dd3a

dev-python/qiskit-aer: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                    |   1 -
 dev-python/qiskit-aer/qiskit-aer-0.11.1-r2.ebuild | 105 ----------------------
 2 files changed, 106 deletions(-)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 639c3afdf999..03578ff2dbf0 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,2 +1 @@
-DIST qiskit-aer-0.11.1.gh.tar.gz 6699343 BLAKE2B 3795e1f71914bbc0074a2eac10a82a28f3171d50f292a13dcb705f62daa5fa332a1eabd52391c1b168a822ca6428feb79fe08bb7c93cfd2f7ee5b0d38fed012b SHA512 7880f2ee99f34eca285b9e7cd096981db2f981d41c54881c4036e2745e4af1185b740d93cd157b83ce4adaf8c207c9c063b86e9a1fa514d1388437d6f33e219f
 DIST qiskit-aer-0.11.2.gh.tar.gz 6707283 BLAKE2B ae32a469d23a31f202b9f970c59e9efb76c290243bce6179b0a58590d671f6dec0428245131e7cb2966b818dae9fbe7e7078a63fac107572e9e7d4a66e47a539 SHA512 48b28f6c54c898bb3984062ec772373e90899fd436c8e00f0c4abd57b6b98ea6c647283445fe551bd516483b66d25c9861ef519f01a0d1ddc6b3ddbce07bc56a

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.11.1-r2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.11.1-r2.ebuild
deleted file mode 100644
index 07a04860f30d..000000000000
--- a/dev-python/qiskit-aer/qiskit-aer-0.11.1-r2.ebuild
+++ /dev/null
@@ -1,105 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
-HOMEPAGE="https://github.com/Qiskit/qiskit-aer"
-SRC_URI="https://github.com/Qiskit/qiskit-aer/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
-# because importing library causes an error.
-# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
-# Using sci-libs/openblas instead here,
-# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
-COMMON_DEPEND="
-	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
-	>=dev-cpp/nlohmann_json-3.1.1
-	>=dev-libs/spdlog-1.5.0:=
-	>=dev-cpp/muParserX-4.0.8
-	virtual/cblas[eselect-ldso]
-	sci-libs/openblas[eselect-ldso]"
-
-BDEPEND="
-	${COMMON_DEPEND}
-	>dev-util/cmake-3.17
-	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
-	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
-	test? (
-		dev-python/ddt[${PYTHON_USEDEP}]
-		dev-python/fixtures[${PYTHON_USEDEP}]
-	)"
-
-RDEPEND="
-	${COMMON_DEPEND}
-	>=dev-python/qiskit-terra-0.21.0[${PYTHON_USEDEP}]
-	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]"
-
-distutils_enable_tests pytest
-
-# Remove cmake dependency from setup.py because of
-# invalid dependency description. We put this dependency check in BDEPEND.
-PATCHES=( "${FILESDIR}/qiskit-aer-0.10.3-remove-cmake-dependency.patch" )
-
-check_openblas() {
-	local libdir=$(get_libdir) me="openblas"
-
-	# check blas
-	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
-	if [[ ${current_blas} != "${me}" ]]; then
-		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
-		eerror "To use qiskit-aer, you have to issue (as root):"
-		eerror "\t eselect blas set ${libdir} ${me}"
-		return 1
-	fi
-	return 0
-}
-
-pkg_setup() {
-	if use test; then
-		check_openblas
-		if [ $? -ne 0 ]; then
-			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
-		fi
-	fi
-}
-
-python_prepare_all() {
-	export DISABLE_CONAN="ON"
-	export DISABLE_DEPENDENCY_INSTALL="ON"
-	#export SKBUILD_CONFIGURE_OPTIONS=""
-
-	distutils-r1_python_prepare_all
-}
-
-python_test() {
-	# We have to hide the source code directory so tests
-	# do not use these, but instead the compiled library.
-	mv qiskit_aer qiskit_aer.hidden || die
-	epytest -s
-	mv qiskit_aer.hidden qiskit_aer || die
-}
-
-python_install_all() {
-	distutils-r1_python_install_all
-
-	# Remove bits we don't want installed (bug in scikit-build)
-	# bug #858128
-	# https://github.com/Qiskit/qiskit-aer/issues/1457
-	# https://github.com/Qiskit/qiskit-aer/issues/1574
-	# https://github.com/scikit-build/scikit-build/issues/590
-	rm -r "${ED}"/usr/{CMakeLists.txt,MANIFEST.in,README.md,cmake,contrib,pyproject.toml,src} || die
-}
-
-pkg_postinst() {
-	check_openblas
-}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-03-10  6:20 Sam James
  0 siblings, 0 replies; 30+ messages in thread
From: Sam James @ 2023-03-10  6:20 UTC (permalink / raw
  To: gentoo-commits

commit:     cfca5cd489193bd4f2ba6941e99a806ba94f3d1f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 10 06:20:08 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 10 06:20:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfca5cd4

dev-python/qiskit-aer: uncomment xdist

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/qiskit-aer/qiskit-aer-0.12.0.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.12.0.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.12.0.ebuild
index 19dedbf6bb29..ec1410b313db 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.12.0.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.12.0.ebuild
@@ -106,7 +106,6 @@ python_test() {
 		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
 	)
 
-
 	# From tox.ini/tests.yml in CI
 	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
 	# a new internal interface that will be the default in jupyter-core 6.x.
@@ -114,7 +113,7 @@ python_test() {
 	local -x JUPYTER_PLATFORM_DIRS=1
 
 	rm -rf qiskit_aer || die
-	epytest -s #-n "$(makeopts_jobs)" -s
+	epytest -n "$(makeopts_jobs)" -s
 }
 
 pkg_postinst() {


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-05-04 16:56 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-05-04 16:56 UTC (permalink / raw
  To: gentoo-commits

commit:     26301b221d025582b461d5a2a624a355f14f60b1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May  4 16:54:21 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May  4 16:56:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26301b22

dev-python/qiskit-aer: Set DISTUTILS_EXT=1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/qiskit-aer-0.11.2-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.11.2-r1.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.11.2-r1.ebuild
index 07d45fbdb52d..157523e90315 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.11.2-r1.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.11.2-r1.ebuild
@@ -3,6 +3,7 @@
 
 EAPI=8
 
+DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..11} )
 


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-08-29 11:33 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-08-29 11:33 UTC (permalink / raw
  To: gentoo-commits

commit:     bec62cc6e2021f9af31b5a3f75444ba2576ce0e5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 29 11:33:14 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 29 11:33:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bec62cc6

dev-python/qiskit-aer: Bump to 0.12.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 +
 dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild | 120 +++++++++++++++++++++++++
 2 files changed, 121 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 79b5d5329912..7315cdfac6be 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,2 +1,3 @@
 DIST qiskit-aer-0.11.2.gh.tar.gz 6707283 BLAKE2B ae32a469d23a31f202b9f970c59e9efb76c290243bce6179b0a58590d671f6dec0428245131e7cb2966b818dae9fbe7e7078a63fac107572e9e7d4a66e47a539 SHA512 48b28f6c54c898bb3984062ec772373e90899fd436c8e00f0c4abd57b6b98ea6c647283445fe551bd516483b66d25c9861ef519f01a0d1ddc6b3ddbce07bc56a
 DIST qiskit-aer-0.12.0.gh.tar.gz 6730571 BLAKE2B 8d14012ffb0e12f32dc954dfa883bc43be6ac7aa4e01597d6abb11c22d7f39e9b419ab78db0c613d951555590498e1f0a5dbc7bb7047d2a8e71ae9a6216c79ab SHA512 4e594b56df671284492146c005de82ac184adf1b96acaf7fffea4b074cd0dc724445c0a10911a985a5e226960179926c94c21dae8edf7e615267b31d53c572e2
+DIST qiskit-aer-0.12.2.gh.tar.gz 6979559 BLAKE2B c7f12c9b8f53a9031844e123b8ef6d723e0099be028c5cfba03143fb8b3c7269768ade99d3ef3b4b82c0b36756bf8e82971a3f70c0f5735891eb77a78a6d9512 SHA512 2a9ed6777e5e4d60a393d5a1b21b44ea3fa90fb791aeafda8bbb4ca8b55c7e8161cd5a275fd14bf968a22537cede099dbd419d1a3c5edebe85fdb82501c4de90

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
new file mode 100644
index 000000000000..a71df28d8888
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
@@ -0,0 +1,120 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 multiprocessing
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="
+	https://github.com/Qiskit/qiskit-aer/
+	https://pypi.org/project/qiskit-aer/
+"
+SRC_URI="
+	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+# Tests fail: https://github.com/Qiskit/qiskit-aer/issues/1742
+#KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+DEPEND="
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.9.2:=
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]
+"
+RDEPEND="
+	${DEPEND}
+	>=dev-python/qiskit-terra-0.21.0[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	>=dev-util/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+		dev-python/pytest-xdist[${PYTHON_USEDEP}]
+	)
+"
+
+PATCHES=(
+	# Remove cmake dependency from setup.py because of
+	# invalid dependency description. We put this dependency check in BDEPEND.
+	"${FILESDIR}"/${PN}-0.12.0-remove-cmake-dependency.patch
+)
+
+distutils_enable_tests pytest
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [[ $? -ne 0 ]]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	#export SKBUILD_CONFIGURE_OPTIONS=""
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# TODO
+		test/terra/states/test_aer_statevector.py::TestAerStatevector::test_drawings
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
+
+		# TODO: GLIBCXX_ASSERTIONS, bug #897758
+		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
+		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
+		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
+	)
+
+	# From tox.ini/tests.yml in CI
+	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
+	# a new internal interface that will be the default in jupyter-core 6.x.
+	# This variable should become redundant on release of jupyter-core 6.
+	local -x JUPYTER_PLATFORM_DIRS=1
+
+	rm -rf qiskit_aer || die
+	epytest -n "$(makeopts_jobs)" -s
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-08-29 14:56 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-08-29 14:56 UTC (permalink / raw
  To: gentoo-commits

commit:     973a020cf85c6ed8fdd6a22f54c534babad33673
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 29 14:55:30 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 29 14:56:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=973a020c

dev-python/qiskit-aer: Restrict dev-cpp/nlohmann_json

Bug: https://github.com/Qiskit/qiskit-aer/issues/1742
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
index 8087bdb6856a..cdd2fefb877a 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
@@ -31,6 +31,7 @@ SLOT="0"
 # with the option to switch between reference/openblas implementation runtime (eselect-ldso).
 DEPEND="
 	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	<dev-cpp/nlohmann_json-3.10.3
 	>=dev-cpp/nlohmann_json-3.1.1
 	>=dev-libs/spdlog-1.9.2:=
 	>=dev-cpp/muParserX-4.0.8


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-08-29 14:56 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-08-29 14:56 UTC (permalink / raw
  To: gentoo-commits

commit:     37b66c9324a909ad4e7fc63c62fb58e5af99bbe6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 29 14:29:56 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 29 14:56:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37b66c93

dev-python/qiskit-aer: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 -
 dev-python/qiskit-aer/qiskit-aer-0.12.0.ebuild | 121 -------------------------
 dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild |   3 +-
 3 files changed, 2 insertions(+), 123 deletions(-)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 7315cdfac6be..e6d81388c924 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,3 +1,2 @@
 DIST qiskit-aer-0.11.2.gh.tar.gz 6707283 BLAKE2B ae32a469d23a31f202b9f970c59e9efb76c290243bce6179b0a58590d671f6dec0428245131e7cb2966b818dae9fbe7e7078a63fac107572e9e7d4a66e47a539 SHA512 48b28f6c54c898bb3984062ec772373e90899fd436c8e00f0c4abd57b6b98ea6c647283445fe551bd516483b66d25c9861ef519f01a0d1ddc6b3ddbce07bc56a
-DIST qiskit-aer-0.12.0.gh.tar.gz 6730571 BLAKE2B 8d14012ffb0e12f32dc954dfa883bc43be6ac7aa4e01597d6abb11c22d7f39e9b419ab78db0c613d951555590498e1f0a5dbc7bb7047d2a8e71ae9a6216c79ab SHA512 4e594b56df671284492146c005de82ac184adf1b96acaf7fffea4b074cd0dc724445c0a10911a985a5e226960179926c94c21dae8edf7e615267b31d53c572e2
 DIST qiskit-aer-0.12.2.gh.tar.gz 6979559 BLAKE2B c7f12c9b8f53a9031844e123b8ef6d723e0099be028c5cfba03143fb8b3c7269768ade99d3ef3b4b82c0b36756bf8e82971a3f70c0f5735891eb77a78a6d9512 SHA512 2a9ed6777e5e4d60a393d5a1b21b44ea3fa90fb791aeafda8bbb4ca8b55c7e8161cd5a275fd14bf968a22537cede099dbd419d1a3c5edebe85fdb82501c4de90

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.12.0.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.12.0.ebuild
deleted file mode 100644
index ec1410b313db..000000000000
--- a/dev-python/qiskit-aer/qiskit-aer-0.12.0.ebuild
+++ /dev/null
@@ -1,121 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
-
-inherit distutils-r1 multiprocessing
-
-DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
-HOMEPAGE="
-	https://github.com/Qiskit/qiskit-aer/
-	https://pypi.org/project/qiskit-aer/
-"
-SRC_URI="
-	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-# Tests fail: https://github.com/Qiskit/qiskit-aer/issues/1742
-#KEYWORDS="~amd64"
-
-# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
-# because importing library causes an error.
-# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
-# Using sci-libs/openblas instead here,
-# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
-DEPEND="
-	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
-	>=dev-cpp/nlohmann_json-3.1.1
-	>=dev-libs/spdlog-1.9.2:=
-	>=dev-cpp/muParserX-4.0.8
-	virtual/cblas[eselect-ldso]
-	sci-libs/openblas[eselect-ldso]
-"
-RDEPEND="
-	${DEPEND}
-	>=dev-python/qiskit-terra-0.21.0[${PYTHON_USEDEP}]
-	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
-	>=dev-util/cmake-3.17
-	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
-	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
-	test? (
-		dev-python/ddt[${PYTHON_USEDEP}]
-		dev-python/fixtures[${PYTHON_USEDEP}]
-		dev-python/pytest-xdist[${PYTHON_USEDEP}]
-	)
-"
-
-PATCHES=(
-	# Remove cmake dependency from setup.py because of
-	# invalid dependency description. We put this dependency check in BDEPEND.
-	"${FILESDIR}"/${PN}-0.12.0-remove-cmake-dependency.patch
-	"${FILESDIR}"/${PN}-0.12.0-wheel-dep.patch
-)
-
-distutils_enable_tests pytest
-
-check_openblas() {
-	local libdir=$(get_libdir) me="openblas"
-
-	# check blas
-	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
-	if [[ ${current_blas} != "${me}" ]]; then
-		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
-		eerror "To use qiskit-aer, you have to issue (as root):"
-		eerror "\t eselect blas set ${libdir} ${me}"
-		return 1
-	fi
-	return 0
-}
-
-pkg_setup() {
-	if use test; then
-		check_openblas
-		if [[ $? -ne 0 ]]; then
-			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
-		fi
-	fi
-}
-
-python_prepare_all() {
-	export DISABLE_CONAN="ON"
-	export DISABLE_DEPENDENCY_INSTALL="ON"
-	#export SKBUILD_CONFIGURE_OPTIONS=""
-
-	distutils-r1_python_prepare_all
-}
-
-python_test() {
-	local EPYTEST_DESELECT=(
-		# TODO
-		test/terra/states/test_aer_statevector.py::TestAerStatevector::test_drawings
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
-
-		# TODO: GLIBCXX_ASSERTIONS, bug #897758
-		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
-		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
-		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
-	)
-
-	# From tox.ini/tests.yml in CI
-	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
-	# a new internal interface that will be the default in jupyter-core 6.x.
-	# This variable should become redundant on release of jupyter-core 6.
-	local -x JUPYTER_PLATFORM_DIRS=1
-
-	rm -rf qiskit_aer || die
-	epytest -n "$(makeopts_jobs)" -s
-}
-
-pkg_postinst() {
-	check_openblas
-}

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
index a71df28d8888..8087bdb6856a 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
@@ -3,6 +3,7 @@
 
 EAPI=8
 
+DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{10..11} )
 
@@ -86,7 +87,7 @@ pkg_setup() {
 python_prepare_all() {
 	export DISABLE_CONAN="ON"
 	export DISABLE_DEPENDENCY_INSTALL="ON"
-	#export SKBUILD_CONFIGURE_OPTIONS=""
+	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
 
 	distutils-r1_python_prepare_all
 }


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-08-29 16:20 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-08-29 16:20 UTC (permalink / raw
  To: gentoo-commits

commit:     24963bcd1828a41b98a09ef6eb66f62e7ad246fe
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 29 15:58:48 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 29 16:20:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24963bcd

dev-python/qiskit-aer: Update deselected tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
index cdd2fefb877a..fe591832b7fc 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
@@ -96,15 +96,14 @@ python_prepare_all() {
 python_test() {
 	local EPYTEST_DESELECT=(
 		# TODO
-		test/terra/states/test_aer_statevector.py::TestAerStatevector::test_drawings
 		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
 		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
 
-		# TODO: GLIBCXX_ASSERTIONS, bug #897758
-		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
-		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
-		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
+		# requires qiskit_qasm3_import
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
 	)
 
 	# From tox.ini/tests.yml in CI


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-08-29 16:20 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-08-29 16:20 UTC (permalink / raw
  To: gentoo-commits

commit:     0bd6943ad3026b8fa6f64ee014f7a5d7e62ed78b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 29 16:09:35 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 29 16:20:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bd6943a

dev-python/qiskit-aer: Require qiskit-terra with -Werror-proof tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
index fe591832b7fc..2a51f570fc73 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
@@ -40,7 +40,7 @@ DEPEND="
 "
 RDEPEND="
 	${DEPEND}
-	>=dev-python/qiskit-terra-0.21.0[${PYTHON_USEDEP}]
+	>=dev-python/qiskit-terra-0.25.1-r1[${PYTHON_USEDEP}]
 	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
 "
 BDEPEND="


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-08-30  5:16 Sam James
  0 siblings, 0 replies; 30+ messages in thread
From: Sam James @ 2023-08-30  5:16 UTC (permalink / raw
  To: gentoo-commits

commit:     6a74d54a20889040b5c7c182bcd15528f1f643aa
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 30 05:15:40 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 30 05:16:03 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a74d54a

dev-python/qiskit-aer: keyword 0.12.2

Thanks to mgorny for doing a lot of work on this and figuring out nlohmann_json
was to blame.

Put back tests which fail for me too (revert some of 24963bcd1828a41b98a09ef6eb66f62e7ad246fe).

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
index 2a51f570fc73..9224a7dcb613 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
@@ -21,14 +21,15 @@ SRC_URI="
 
 LICENSE="Apache-2.0"
 SLOT="0"
-# Tests fail: https://github.com/Qiskit/qiskit-aer/issues/1742
-#KEYWORDS="~amd64"
+KEYWORDS="~amd64"
 
 # The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
 # because importing library causes an error.
 # /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
 # Using sci-libs/openblas instead here,
 # with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+#
+# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
 DEPEND="
 	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
 	<dev-cpp/nlohmann_json-3.10.3
@@ -97,8 +98,14 @@ python_test() {
 	local EPYTEST_DESELECT=(
 		# TODO
 		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
 		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
 
+		# TODO: GLIBCXX_ASSERTIONS, bug #897758
+		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
+		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
+		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
+
 		# requires qiskit_qasm3_import
 		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
 		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-10-26 12:19 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-10-26 12:19 UTC (permalink / raw
  To: gentoo-commits

commit:     f8a1f66eae1049c8e659f7d8395d07be403d2b47
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 26 12:06:40 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct 26 12:19:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8a1f66e

dev-python/qiskit-aer: Bump to 0.13.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 +
 dev-python/qiskit-aer/qiskit-aer-0.13.0.ebuild | 128 +++++++++++++++++++++++++
 2 files changed, 129 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index e6d81388c924..128be28b94eb 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,2 +1,3 @@
 DIST qiskit-aer-0.11.2.gh.tar.gz 6707283 BLAKE2B ae32a469d23a31f202b9f970c59e9efb76c290243bce6179b0a58590d671f6dec0428245131e7cb2966b818dae9fbe7e7078a63fac107572e9e7d4a66e47a539 SHA512 48b28f6c54c898bb3984062ec772373e90899fd436c8e00f0c4abd57b6b98ea6c647283445fe551bd516483b66d25c9861ef519f01a0d1ddc6b3ddbce07bc56a
 DIST qiskit-aer-0.12.2.gh.tar.gz 6979559 BLAKE2B c7f12c9b8f53a9031844e123b8ef6d723e0099be028c5cfba03143fb8b3c7269768ade99d3ef3b4b82c0b36756bf8e82971a3f70c0f5735891eb77a78a6d9512 SHA512 2a9ed6777e5e4d60a393d5a1b21b44ea3fa90fb791aeafda8bbb4ca8b55c7e8161cd5a275fd14bf968a22537cede099dbd419d1a3c5edebe85fdb82501c4de90
+DIST qiskit-aer-0.13.0.gh.tar.gz 6976422 BLAKE2B ca38dc3ec718a2e1c29bb54e69b0c327e8b0b3b7be5de41aef92c45c4e192565e43e9a21bd53bd2fa55cff4b0259052c59112d45d413d4eb3ba091e1855de4ca SHA512 3e9b8c46dcd655f44a790c6c704f8fa4adb734e4adcb5e6b7b24d7d2f126bfe55340de9814b6b7a7fc276f510dd6fd9fed8525cc42a236ed97f48199435cebe5

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.13.0.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.13.0.ebuild
new file mode 100644
index 000000000000..9224a7dcb613
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.13.0.ebuild
@@ -0,0 +1,128 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 multiprocessing
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="
+	https://github.com/Qiskit/qiskit-aer/
+	https://pypi.org/project/qiskit-aer/
+"
+SRC_URI="
+	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+#
+# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
+DEPEND="
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	<dev-cpp/nlohmann_json-3.10.3
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.9.2:=
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]
+"
+RDEPEND="
+	${DEPEND}
+	>=dev-python/qiskit-terra-0.25.1-r1[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	>=dev-util/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+		dev-python/pytest-xdist[${PYTHON_USEDEP}]
+	)
+"
+
+PATCHES=(
+	# Remove cmake dependency from setup.py because of
+	# invalid dependency description. We put this dependency check in BDEPEND.
+	"${FILESDIR}"/${PN}-0.12.0-remove-cmake-dependency.patch
+)
+
+distutils_enable_tests pytest
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [[ $? -ne 0 ]]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# TODO
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
+
+		# TODO: GLIBCXX_ASSERTIONS, bug #897758
+		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
+		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
+		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
+
+		# requires qiskit_qasm3_import
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
+	)
+
+	# From tox.ini/tests.yml in CI
+	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
+	# a new internal interface that will be the default in jupyter-core 6.x.
+	# This variable should become redundant on release of jupyter-core 6.
+	local -x JUPYTER_PLATFORM_DIRS=1
+
+	rm -rf qiskit_aer || die
+	epytest -n "$(makeopts_jobs)" -s
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-10-29  5:07 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-10-29  5:07 UTC (permalink / raw
  To: gentoo-commits

commit:     b7b17dc2a76427172f31b15551690b72df0da979
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 29 04:50:33 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct 29 05:07:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7b17dc2

dev-python/qiskit-aer: Remove unnecessary patch

We do not enforce requirements from `pyproject.toml`, so we do not need
to strip them.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/qiskit-aer-0.13.0-r1.ebuild | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.13.0-r1.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.13.0-r1.ebuild
index 3ab138008182..2619da85ec7d 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.13.0-r1.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.13.0-r1.ebuild
@@ -55,12 +55,6 @@ BDEPEND="
 	)
 "
 
-PATCHES=(
-	# Remove cmake dependency from setup.py because of
-	# invalid dependency description. We put this dependency check in BDEPEND.
-	"${FILESDIR}"/${PN}-0.12.0-remove-cmake-dependency.patch
-)
-
 distutils_enable_tests pytest
 
 check_openblas() {


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-10-29  5:07 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-10-29  5:07 UTC (permalink / raw
  To: gentoo-commits

commit:     0b49d3ee141a6bf789f66befc8645887717bcfdb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 29 04:50:00 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct 29 05:07:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b49d3ee

dev-python/qiskit-aer: Strip metapackage dep

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../{qiskit-aer-0.13.0.ebuild => qiskit-aer-0.13.0-r1.ebuild}          | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.13.0.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.13.0-r1.ebuild
similarity index 98%
rename from dev-python/qiskit-aer/qiskit-aer-0.13.0.ebuild
rename to dev-python/qiskit-aer/qiskit-aer-0.13.0-r1.ebuild
index 9224a7dcb613..3ab138008182 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.13.0.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.13.0-r1.ebuild
@@ -91,6 +91,9 @@ python_prepare_all() {
 	export DISABLE_DEPENDENCY_INSTALL="ON"
 	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
 
+	# remove meaningless dep on the metapackage
+	sed -i -e '/qiskit>=/d' setup.py || die
+
 	distutils-r1_python_prepare_all
 }
 


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2023-11-24 13:42 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2023-11-24 13:42 UTC (permalink / raw
  To: gentoo-commits

commit:     d769cf94d35b174ca297fd86a39369ca9d48222e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 24 13:11:59 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov 24 13:42:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d769cf94

dev-python/qiskit-aer: Bump to 0.13.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 +
 dev-python/qiskit-aer/qiskit-aer-0.13.1.ebuild | 126 +++++++++++++++++++++++++
 2 files changed, 127 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 128be28b94eb..d886abef6e28 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,3 +1,4 @@
 DIST qiskit-aer-0.11.2.gh.tar.gz 6707283 BLAKE2B ae32a469d23a31f202b9f970c59e9efb76c290243bce6179b0a58590d671f6dec0428245131e7cb2966b818dae9fbe7e7078a63fac107572e9e7d4a66e47a539 SHA512 48b28f6c54c898bb3984062ec772373e90899fd436c8e00f0c4abd57b6b98ea6c647283445fe551bd516483b66d25c9861ef519f01a0d1ddc6b3ddbce07bc56a
 DIST qiskit-aer-0.12.2.gh.tar.gz 6979559 BLAKE2B c7f12c9b8f53a9031844e123b8ef6d723e0099be028c5cfba03143fb8b3c7269768ade99d3ef3b4b82c0b36756bf8e82971a3f70c0f5735891eb77a78a6d9512 SHA512 2a9ed6777e5e4d60a393d5a1b21b44ea3fa90fb791aeafda8bbb4ca8b55c7e8161cd5a275fd14bf968a22537cede099dbd419d1a3c5edebe85fdb82501c4de90
 DIST qiskit-aer-0.13.0.gh.tar.gz 6976422 BLAKE2B ca38dc3ec718a2e1c29bb54e69b0c327e8b0b3b7be5de41aef92c45c4e192565e43e9a21bd53bd2fa55cff4b0259052c59112d45d413d4eb3ba091e1855de4ca SHA512 3e9b8c46dcd655f44a790c6c704f8fa4adb734e4adcb5e6b7b24d7d2f126bfe55340de9814b6b7a7fc276f510dd6fd9fed8525cc42a236ed97f48199435cebe5
+DIST qiskit-aer-0.13.1.gh.tar.gz 6979392 BLAKE2B a49f992a80ef644f34cb570d6cf85e147b7c897004c248ec749c43a64c5b950fe9d7f178c53b79202f73186c03e5bc61f36be76b904e22aa6f82a79b1b255bcf SHA512 45568fc1027bb530121a0c39b3bab7847e481e0dba57a005c1a1afb8f3523c098a11acddf96eac87bc750e19d2f7c4e47d8de797ae2501b464d68b849ec7b809

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.13.1.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.13.1.ebuild
new file mode 100644
index 000000000000..9001a0058e12
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.13.1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 multiprocessing
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="
+	https://github.com/Qiskit/qiskit-aer/
+	https://pypi.org/project/qiskit-aer/
+"
+SRC_URI="
+	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+#
+# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
+DEPEND="
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	<dev-cpp/nlohmann_json-3.10.3
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.9.2:=
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]
+"
+RDEPEND="
+	${DEPEND}
+	>=dev-python/psutil-5[${PYTHON_USEDEP}]
+	>=dev-python/qiskit-terra-0.25.1-r1[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	>=dev-util/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+		dev-python/pytest-xdist[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [[ $? -ne 0 ]]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
+
+	# remove meaningless dep on the metapackage
+	sed -i -e '/qiskit>=/d' setup.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# TODO
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
+
+		# TODO: GLIBCXX_ASSERTIONS, bug #897758
+		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
+		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
+		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
+
+		# requires qiskit_qasm3_import
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
+	)
+
+	# From tox.ini/tests.yml in CI
+	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
+	# a new internal interface that will be the default in jupyter-core 6.x.
+	# This variable should become redundant on release of jupyter-core 6.
+	local -x JUPYTER_PLATFORM_DIRS=1
+
+	rm -rf qiskit_aer || die
+	epytest -n "$(makeopts_jobs)" -s
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-01-17  7:41 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-01-17  7:41 UTC (permalink / raw
  To: gentoo-commits

commit:     2ed63eb3d05a27d2cdf7beb0df3fc9086e704f4a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 17 07:22:07 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 17 07:40:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ed63eb3

dev-python/qiskit-aer: Bump to 0.13.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 +
 dev-python/qiskit-aer/qiskit-aer-0.13.2.ebuild | 126 +++++++++++++++++++++++++
 2 files changed, 127 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index ef5574dd4b16..0eb1dde70814 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,2 +1,3 @@
 DIST qiskit-aer-0.12.2.gh.tar.gz 6979559 BLAKE2B c7f12c9b8f53a9031844e123b8ef6d723e0099be028c5cfba03143fb8b3c7269768ade99d3ef3b4b82c0b36756bf8e82971a3f70c0f5735891eb77a78a6d9512 SHA512 2a9ed6777e5e4d60a393d5a1b21b44ea3fa90fb791aeafda8bbb4ca8b55c7e8161cd5a275fd14bf968a22537cede099dbd419d1a3c5edebe85fdb82501c4de90
 DIST qiskit-aer-0.13.1.gh.tar.gz 6979392 BLAKE2B a49f992a80ef644f34cb570d6cf85e147b7c897004c248ec749c43a64c5b950fe9d7f178c53b79202f73186c03e5bc61f36be76b904e22aa6f82a79b1b255bcf SHA512 45568fc1027bb530121a0c39b3bab7847e481e0dba57a005c1a1afb8f3523c098a11acddf96eac87bc750e19d2f7c4e47d8de797ae2501b464d68b849ec7b809
+DIST qiskit-aer-0.13.2.gh.tar.gz 6981338 BLAKE2B 583937a3515f3de0714100cf7586f42b028c5918d50e2352fa3658b6e53e185ce5db5dc4a5abbe0ad8cf4634da123a47c7708eeee7f9ec53af2fdedc2d6192ef SHA512 f31bb19da67672a9e1cddbf18b35efb4c7cd94444033275acb00c5fd4fce80b56f08610addc58d6d5d68d4da1b6a6cdf38fc929c9921d83620e793aaab51fe57

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.13.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.13.2.ebuild
new file mode 100644
index 000000000000..d4258a30ae9e
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.13.2.ebuild
@@ -0,0 +1,126 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 multiprocessing
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="
+	https://github.com/Qiskit/qiskit-aer/
+	https://pypi.org/project/qiskit-aer/
+"
+SRC_URI="
+	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+#
+# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
+DEPEND="
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	<dev-cpp/nlohmann_json-3.10.3
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.9.2:=
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]
+"
+RDEPEND="
+	${DEPEND}
+	>=dev-python/psutil-5[${PYTHON_USEDEP}]
+	>=dev-python/qiskit-terra-0.45.0[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	>=dev-build/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+		dev-python/pytest-xdist[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [[ $? -ne 0 ]]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
+
+	# remove meaningless dep on the metapackage
+	sed -i -e '/qiskit>=/d' setup.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# TODO
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
+
+		# TODO: GLIBCXX_ASSERTIONS, bug #897758
+		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
+		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
+		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
+
+		# requires qiskit_qasm3_import
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
+	)
+
+	# From tox.ini/tests.yml in CI
+	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
+	# a new internal interface that will be the default in jupyter-core 6.x.
+	# This variable should become redundant on release of jupyter-core 6.
+	local -x JUPYTER_PLATFORM_DIRS=1
+
+	rm -rf qiskit_aer || die
+	epytest -n "$(makeopts_jobs)" -s
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-02-07  7:39 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-02-07  7:39 UTC (permalink / raw
  To: gentoo-commits

commit:     658f16a665ea69a2ccad743a1b8a3f3062cc2ac4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  7 07:14:34 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb  7 07:39:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=658f16a6

dev-python/qiskit-aer: Bump to 0.13.3

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 +
 dev-python/qiskit-aer/qiskit-aer-0.13.3.ebuild | 126 +++++++++++++++++++++++++
 2 files changed, 127 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 0eb1dde70814..32ebf460ed94 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,3 +1,4 @@
 DIST qiskit-aer-0.12.2.gh.tar.gz 6979559 BLAKE2B c7f12c9b8f53a9031844e123b8ef6d723e0099be028c5cfba03143fb8b3c7269768ade99d3ef3b4b82c0b36756bf8e82971a3f70c0f5735891eb77a78a6d9512 SHA512 2a9ed6777e5e4d60a393d5a1b21b44ea3fa90fb791aeafda8bbb4ca8b55c7e8161cd5a275fd14bf968a22537cede099dbd419d1a3c5edebe85fdb82501c4de90
 DIST qiskit-aer-0.13.1.gh.tar.gz 6979392 BLAKE2B a49f992a80ef644f34cb570d6cf85e147b7c897004c248ec749c43a64c5b950fe9d7f178c53b79202f73186c03e5bc61f36be76b904e22aa6f82a79b1b255bcf SHA512 45568fc1027bb530121a0c39b3bab7847e481e0dba57a005c1a1afb8f3523c098a11acddf96eac87bc750e19d2f7c4e47d8de797ae2501b464d68b849ec7b809
 DIST qiskit-aer-0.13.2.gh.tar.gz 6981338 BLAKE2B 583937a3515f3de0714100cf7586f42b028c5918d50e2352fa3658b6e53e185ce5db5dc4a5abbe0ad8cf4634da123a47c7708eeee7f9ec53af2fdedc2d6192ef SHA512 f31bb19da67672a9e1cddbf18b35efb4c7cd94444033275acb00c5fd4fce80b56f08610addc58d6d5d68d4da1b6a6cdf38fc929c9921d83620e793aaab51fe57
+DIST qiskit-aer-0.13.3.gh.tar.gz 6982603 BLAKE2B 0ecc1929b0fec476b8e80012d78d9a65fcd8994f7c0fd66880e31c44bc3fa3d050774d696a9b5726f18cd401113dc8068e4391002743936baa09c283e06ba9bf SHA512 53d8741ed025ca3155931be6c66bc10618efc7beda69f0d3a2ba9ce8fea5beedfb6384761b64494e92be34ce64391b0f5f08c52945123431ea583d79fa0083e7

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.13.3.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.13.3.ebuild
new file mode 100644
index 000000000000..d4258a30ae9e
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.13.3.ebuild
@@ -0,0 +1,126 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 multiprocessing
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="
+	https://github.com/Qiskit/qiskit-aer/
+	https://pypi.org/project/qiskit-aer/
+"
+SRC_URI="
+	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+#
+# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
+DEPEND="
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	<dev-cpp/nlohmann_json-3.10.3
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.9.2:=
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]
+"
+RDEPEND="
+	${DEPEND}
+	>=dev-python/psutil-5[${PYTHON_USEDEP}]
+	>=dev-python/qiskit-terra-0.45.0[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	>=dev-build/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+		dev-python/pytest-xdist[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [[ $? -ne 0 ]]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
+
+	# remove meaningless dep on the metapackage
+	sed -i -e '/qiskit>=/d' setup.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# TODO
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
+		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
+
+		# TODO: GLIBCXX_ASSERTIONS, bug #897758
+		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
+		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
+		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
+
+		# requires qiskit_qasm3_import
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
+	)
+
+	# From tox.ini/tests.yml in CI
+	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
+	# a new internal interface that will be the default in jupyter-core 6.x.
+	# This variable should become redundant on release of jupyter-core 6.
+	local -x JUPYTER_PLATFORM_DIRS=1
+
+	rm -rf qiskit_aer || die
+	epytest -n "$(makeopts_jobs)" -s
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-02-26 14:25 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-02-26 14:25 UTC (permalink / raw
  To: gentoo-commits

commit:     8183a9d8f279dc4c8a159752cbdeb403d3f54db2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 26 14:12:39 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 26 14:12:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8183a9d8

dev-python/qiskit-aer: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   2 -
 dev-python/qiskit-aer/qiskit-aer-0.13.1.ebuild | 126 -------------------------
 dev-python/qiskit-aer/qiskit-aer-0.13.2.ebuild | 126 -------------------------
 3 files changed, 254 deletions(-)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 32ebf460ed94..286bb67e6236 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,4 +1,2 @@
 DIST qiskit-aer-0.12.2.gh.tar.gz 6979559 BLAKE2B c7f12c9b8f53a9031844e123b8ef6d723e0099be028c5cfba03143fb8b3c7269768ade99d3ef3b4b82c0b36756bf8e82971a3f70c0f5735891eb77a78a6d9512 SHA512 2a9ed6777e5e4d60a393d5a1b21b44ea3fa90fb791aeafda8bbb4ca8b55c7e8161cd5a275fd14bf968a22537cede099dbd419d1a3c5edebe85fdb82501c4de90
-DIST qiskit-aer-0.13.1.gh.tar.gz 6979392 BLAKE2B a49f992a80ef644f34cb570d6cf85e147b7c897004c248ec749c43a64c5b950fe9d7f178c53b79202f73186c03e5bc61f36be76b904e22aa6f82a79b1b255bcf SHA512 45568fc1027bb530121a0c39b3bab7847e481e0dba57a005c1a1afb8f3523c098a11acddf96eac87bc750e19d2f7c4e47d8de797ae2501b464d68b849ec7b809
-DIST qiskit-aer-0.13.2.gh.tar.gz 6981338 BLAKE2B 583937a3515f3de0714100cf7586f42b028c5918d50e2352fa3658b6e53e185ce5db5dc4a5abbe0ad8cf4634da123a47c7708eeee7f9ec53af2fdedc2d6192ef SHA512 f31bb19da67672a9e1cddbf18b35efb4c7cd94444033275acb00c5fd4fce80b56f08610addc58d6d5d68d4da1b6a6cdf38fc929c9921d83620e793aaab51fe57
 DIST qiskit-aer-0.13.3.gh.tar.gz 6982603 BLAKE2B 0ecc1929b0fec476b8e80012d78d9a65fcd8994f7c0fd66880e31c44bc3fa3d050774d696a9b5726f18cd401113dc8068e4391002743936baa09c283e06ba9bf SHA512 53d8741ed025ca3155931be6c66bc10618efc7beda69f0d3a2ba9ce8fea5beedfb6384761b64494e92be34ce64391b0f5f08c52945123431ea583d79fa0083e7

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.13.1.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.13.1.ebuild
deleted file mode 100644
index 9a7a45047d78..000000000000
--- a/dev-python/qiskit-aer/qiskit-aer-0.13.1.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 2022-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1 multiprocessing
-
-DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
-HOMEPAGE="
-	https://github.com/Qiskit/qiskit-aer/
-	https://pypi.org/project/qiskit-aer/
-"
-SRC_URI="
-	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
-# because importing library causes an error.
-# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
-# Using sci-libs/openblas instead here,
-# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
-#
-# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
-DEPEND="
-	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
-	<dev-cpp/nlohmann_json-3.10.3
-	>=dev-cpp/nlohmann_json-3.1.1
-	>=dev-libs/spdlog-1.9.2:=
-	>=dev-cpp/muParserX-4.0.8
-	virtual/cblas[eselect-ldso]
-	sci-libs/openblas[eselect-ldso]
-"
-RDEPEND="
-	${DEPEND}
-	>=dev-python/psutil-5[${PYTHON_USEDEP}]
-	>=dev-python/qiskit-terra-0.25.1-r1[${PYTHON_USEDEP}]
-	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
-	>=dev-build/cmake-3.17
-	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
-	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
-	test? (
-		dev-python/ddt[${PYTHON_USEDEP}]
-		dev-python/fixtures[${PYTHON_USEDEP}]
-		dev-python/pytest-xdist[${PYTHON_USEDEP}]
-	)
-"
-
-distutils_enable_tests pytest
-
-check_openblas() {
-	local libdir=$(get_libdir) me="openblas"
-
-	# check blas
-	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
-	if [[ ${current_blas} != "${me}" ]]; then
-		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
-		eerror "To use qiskit-aer, you have to issue (as root):"
-		eerror "\t eselect blas set ${libdir} ${me}"
-		return 1
-	fi
-	return 0
-}
-
-pkg_setup() {
-	if use test; then
-		check_openblas
-		if [[ $? -ne 0 ]]; then
-			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
-		fi
-	fi
-}
-
-python_prepare_all() {
-	export DISABLE_CONAN="ON"
-	export DISABLE_DEPENDENCY_INSTALL="ON"
-	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
-
-	# remove meaningless dep on the metapackage
-	sed -i -e '/qiskit>=/d' setup.py || die
-
-	distutils-r1_python_prepare_all
-}
-
-python_test() {
-	local EPYTEST_DESELECT=(
-		# TODO
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
-
-		# TODO: GLIBCXX_ASSERTIONS, bug #897758
-		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
-		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
-		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
-
-		# requires qiskit_qasm3_import
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
-	)
-
-	# From tox.ini/tests.yml in CI
-	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
-	# a new internal interface that will be the default in jupyter-core 6.x.
-	# This variable should become redundant on release of jupyter-core 6.
-	local -x JUPYTER_PLATFORM_DIRS=1
-
-	rm -rf qiskit_aer || die
-	epytest -n "$(makeopts_jobs)" -s
-}
-
-pkg_postinst() {
-	check_openblas
-}

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.13.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.13.2.ebuild
deleted file mode 100644
index d4258a30ae9e..000000000000
--- a/dev-python/qiskit-aer/qiskit-aer-0.13.2.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 2022-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1 multiprocessing
-
-DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
-HOMEPAGE="
-	https://github.com/Qiskit/qiskit-aer/
-	https://pypi.org/project/qiskit-aer/
-"
-SRC_URI="
-	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
-# because importing library causes an error.
-# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
-# Using sci-libs/openblas instead here,
-# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
-#
-# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
-DEPEND="
-	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
-	<dev-cpp/nlohmann_json-3.10.3
-	>=dev-cpp/nlohmann_json-3.1.1
-	>=dev-libs/spdlog-1.9.2:=
-	>=dev-cpp/muParserX-4.0.8
-	virtual/cblas[eselect-ldso]
-	sci-libs/openblas[eselect-ldso]
-"
-RDEPEND="
-	${DEPEND}
-	>=dev-python/psutil-5[${PYTHON_USEDEP}]
-	>=dev-python/qiskit-terra-0.45.0[${PYTHON_USEDEP}]
-	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
-	>=dev-build/cmake-3.17
-	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
-	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
-	test? (
-		dev-python/ddt[${PYTHON_USEDEP}]
-		dev-python/fixtures[${PYTHON_USEDEP}]
-		dev-python/pytest-xdist[${PYTHON_USEDEP}]
-	)
-"
-
-distutils_enable_tests pytest
-
-check_openblas() {
-	local libdir=$(get_libdir) me="openblas"
-
-	# check blas
-	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
-	if [[ ${current_blas} != "${me}" ]]; then
-		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
-		eerror "To use qiskit-aer, you have to issue (as root):"
-		eerror "\t eselect blas set ${libdir} ${me}"
-		return 1
-	fi
-	return 0
-}
-
-pkg_setup() {
-	if use test; then
-		check_openblas
-		if [[ $? -ne 0 ]]; then
-			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
-		fi
-	fi
-}
-
-python_prepare_all() {
-	export DISABLE_CONAN="ON"
-	export DISABLE_DEPENDENCY_INSTALL="ON"
-	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
-
-	# remove meaningless dep on the metapackage
-	sed -i -e '/qiskit>=/d' setup.py || die
-
-	distutils-r1_python_prepare_all
-}
-
-python_test() {
-	local EPYTEST_DESELECT=(
-		# TODO
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_diagonal
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_measure
-		test/terra/states/test_aer_state.py::TestAerState::test_appply_reset
-
-		# TODO: GLIBCXX_ASSERTIONS, bug #897758
-		test/terra/backends/aer_simulator/test_algorithms.py::TestAlgorithms::test_extended_stabilizer_sparse_output_probs
-		test/terra/backends/aer_simulator/test_options.py::TestOptions::test_mps_options
-		test/terra/backends/aer_simulator/test_fusion.py::TestGateFusion::test_parallel_fusion_diagonal
-
-		# requires qiskit_qasm3_import
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
-	)
-
-	# From tox.ini/tests.yml in CI
-	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
-	# a new internal interface that will be the default in jupyter-core 6.x.
-	# This variable should become redundant on release of jupyter-core 6.
-	local -x JUPYTER_PLATFORM_DIRS=1
-
-	rm -rf qiskit_aer || die
-	epytest -n "$(makeopts_jobs)" -s
-}
-
-pkg_postinst() {
-	check_openblas
-}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-05-28 15:27 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-05-28 15:27 UTC (permalink / raw
  To: gentoo-commits

commit:     b86514d88a79a3bfdec512b87a99fcd437c00b40
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 28 15:21:43 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 28 15:27:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b86514d8

dev-python/qiskit-aer: Enable py3.12

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild | 4 +++-
 dev-python/qiskit-aer/qiskit-aer-0.13.3.ebuild | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
index c4d33f2a130b..9616058c1ebf 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.12.2.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 
 inherit distutils-r1 multiprocessing
 
@@ -31,6 +31,7 @@ KEYWORDS="~amd64"
 #
 # <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
 DEPEND="
+	<dev-python/numpy-2[${PYTHON_USEDEP}]
 	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
 	<dev-cpp/nlohmann_json-3.10.3
 	>=dev-cpp/nlohmann_json-3.1.1
@@ -51,6 +52,7 @@ BDEPEND="
 	test? (
 		dev-python/ddt[${PYTHON_USEDEP}]
 		dev-python/fixtures[${PYTHON_USEDEP}]
+		<dev-python/pytest-8.2[${PYTHON_USEDEP}]
 		dev-python/pytest-xdist[${PYTHON_USEDEP}]
 	)
 "

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.13.3.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.13.3.ebuild
index d4258a30ae9e..8a056dfd27a5 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.13.3.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.13.3.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 
 inherit distutils-r1 multiprocessing
 
@@ -31,6 +31,7 @@ KEYWORDS="~amd64"
 #
 # <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
 DEPEND="
+	<dev-python/numpy-2[${PYTHON_USEDEP}]
 	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
 	<dev-cpp/nlohmann_json-3.10.3
 	>=dev-cpp/nlohmann_json-3.1.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-05-31  5:22 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-05-31  5:22 UTC (permalink / raw
  To: gentoo-commits

commit:     9c1f4f4375276b1f5ea1af634ce7b66f0a40d467
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 31 05:09:42 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 31 05:21:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c1f4f43

dev-python/qiskit-aer: Bump to 0.14.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 +
 dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild | 120 +++++++++++++++++++++++++
 2 files changed, 121 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 286bb67e6236..9fe8ab2d1981 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,2 +1,3 @@
 DIST qiskit-aer-0.12.2.gh.tar.gz 6979559 BLAKE2B c7f12c9b8f53a9031844e123b8ef6d723e0099be028c5cfba03143fb8b3c7269768ade99d3ef3b4b82c0b36756bf8e82971a3f70c0f5735891eb77a78a6d9512 SHA512 2a9ed6777e5e4d60a393d5a1b21b44ea3fa90fb791aeafda8bbb4ca8b55c7e8161cd5a275fd14bf968a22537cede099dbd419d1a3c5edebe85fdb82501c4de90
 DIST qiskit-aer-0.13.3.gh.tar.gz 6982603 BLAKE2B 0ecc1929b0fec476b8e80012d78d9a65fcd8994f7c0fd66880e31c44bc3fa3d050774d696a9b5726f18cd401113dc8068e4391002743936baa09c283e06ba9bf SHA512 53d8741ed025ca3155931be6c66bc10618efc7beda69f0d3a2ba9ce8fea5beedfb6384761b64494e92be34ce64391b0f5f08c52945123431ea583d79fa0083e7
+DIST qiskit-aer-0.14.2.gh.tar.gz 7132159 BLAKE2B bc684f7acca071866bc6413d5fb881cf131fe212be7294922a6861dc526d77d0cfb906d9c2ea57236e42e8a99e137ee0ac5f0c1e11fd027122983ad3d8992f73 SHA512 75a2fadb413fc557f98043cc028b28f6cae65b983fd0f32f1e8b8eda6d5cbc6d9d528c38f765d14ede5909045cef914335a483f762c20c4dd85754449d63371c

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
new file mode 100644
index 000000000000..fc6534cb0fdc
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
@@ -0,0 +1,120 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="
+	https://github.com/Qiskit/qiskit-aer/
+	https://pypi.org/project/qiskit-aer/
+"
+SRC_URI="
+	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+#
+# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
+DEPEND="
+	<dev-python/numpy-2[${PYTHON_USEDEP}]
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	<dev-cpp/nlohmann_json-3.10.3
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.9.2:=
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]
+"
+RDEPEND="
+	${DEPEND}
+	>=dev-python/psutil-5[${PYTHON_USEDEP}]
+	>=dev-python/qiskit-terra-1.1.0[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	>=dev-build/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+	)
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [[ $? -ne 0 ]]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# requires qiskit_qasm3_import
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
+	)
+
+	local EPYTEST_IGNORE=(
+		# TODO: qiskit.providers.aer? wtf?
+		test/terra/expression/test_classical_expressions.py
+	)
+
+	# From tox.ini/tests.yml in CI
+	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
+	# a new internal interface that will be the default in jupyter-core 6.x.
+	# This variable should become redundant on release of jupyter-core 6.
+	local -x JUPYTER_PLATFORM_DIRS=1
+
+	rm -rf qiskit_aer || die
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest -s
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-05-31  5:28 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-05-31  5:28 UTC (permalink / raw
  To: gentoo-commits

commit:     aa1d957a4ee57a31a7ccf7dd4b1f35464f4a892e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 31 05:27:38 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 31 05:27:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa1d957a

dev-python/qiskit-aer: Unlock dev-python/numpy-2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
index 1ba5910598ce..be250877d000 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
@@ -31,7 +31,6 @@ KEYWORDS="~amd64"
 #
 # <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
 DEPEND="
-	<dev-python/numpy-2[${PYTHON_USEDEP}]
 	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
 	<dev-cpp/nlohmann_json-3.10.3
 	>=dev-cpp/nlohmann_json-3.1.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-07-12 16:10 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-07-12 16:10 UTC (permalink / raw
  To: gentoo-commits

commit:     41bf38864dd4b69dde860efd016b179b07a04160
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 12 15:41:38 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 12 16:10:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41bf3886

dev-python/qiskit-aer: Enable py3.13

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 | 1 +
 dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 01caeb503da1..d4bce84c3f27 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1 +1,2 @@
+DIST pyo3-ffi-0.22.1-py313.patch 6315 BLAKE2B 55f9c5d45356e8c4b2a86da0f489788de576d7fb4c7b124a87d953e8d3a850fbeb05a1af8e6f34edf252aeda40445f711f4409a3a80df7442bd4676c1d8969f8 SHA512 f6e6e2498bbd8b60e013b4cb6e1f1eda764292e3cd91ba5800fe798521f462bb97f1e621711513d52c263f7b394821a710252425cfb0de0f1c4457882dd138ab
 DIST qiskit-aer-0.14.2.gh.tar.gz 7132159 BLAKE2B bc684f7acca071866bc6413d5fb881cf131fe212be7294922a6861dc526d77d0cfb906d9c2ea57236e42e8a99e137ee0ac5f0c1e11fd027122983ad3d8992f73 SHA512 75a2fadb413fc557f98043cc028b28f6cae65b983fd0f32f1e8b8eda6d5cbc6d9d528c38f765d14ede5909045cef914335a483f762c20c4dd85754449d63371c

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
index be250877d000..06def0bfe1d8 100644
--- a/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
+++ b/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
 
 inherit distutils-r1
 


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-07-12 16:27 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-07-12 16:27 UTC (permalink / raw
  To: gentoo-commits

commit:     caa0f1dce316f966d2f955bb06b97d7500222526
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 12 16:26:36 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 12 16:27:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caa0f1dc

dev-python/qiskit-aer: Clean Manifest up

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index d4bce84c3f27..01caeb503da1 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,2 +1 @@
-DIST pyo3-ffi-0.22.1-py313.patch 6315 BLAKE2B 55f9c5d45356e8c4b2a86da0f489788de576d7fb4c7b124a87d953e8d3a850fbeb05a1af8e6f34edf252aeda40445f711f4409a3a80df7442bd4676c1d8969f8 SHA512 f6e6e2498bbd8b60e013b4cb6e1f1eda764292e3cd91ba5800fe798521f462bb97f1e621711513d52c263f7b394821a710252425cfb0de0f1c4457882dd138ab
 DIST qiskit-aer-0.14.2.gh.tar.gz 7132159 BLAKE2B bc684f7acca071866bc6413d5fb881cf131fe212be7294922a6861dc526d77d0cfb906d9c2ea57236e42e8a99e137ee0ac5f0c1e11fd027122983ad3d8992f73 SHA512 75a2fadb413fc557f98043cc028b28f6cae65b983fd0f32f1e8b8eda6d5cbc6d9d528c38f765d14ede5909045cef914335a483f762c20c4dd85754449d63371c


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-08-23 16:44 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-08-23 16:44 UTC (permalink / raw
  To: gentoo-commits

commit:     575b6322c2fc644ccbf286f72423120bff58ed94
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 23 15:56:32 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug 23 15:56:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=575b6322

dev-python/qiskit-aer: Bump to 0.15

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest               |   1 +
 dev-python/qiskit-aer/qiskit-aer-0.15.ebuild | 119 +++++++++++++++++++++++++++
 2 files changed, 120 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 01caeb503da1..412a6e7e07b3 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1 +1,2 @@
 DIST qiskit-aer-0.14.2.gh.tar.gz 7132159 BLAKE2B bc684f7acca071866bc6413d5fb881cf131fe212be7294922a6861dc526d77d0cfb906d9c2ea57236e42e8a99e137ee0ac5f0c1e11fd027122983ad3d8992f73 SHA512 75a2fadb413fc557f98043cc028b28f6cae65b983fd0f32f1e8b8eda6d5cbc6d9d528c38f765d14ede5909045cef914335a483f762c20c4dd85754449d63371c
+DIST qiskit-aer-0.15.gh.tar.gz 7133462 BLAKE2B 3a72d5e1c97e54dd9090bbd072ca52c03bc90d53ec13bdb52b20112adebde6ef4e85a5d3761d5cc9fab7bc8d41651865e538eaad591dad266533441114ae1ddc SHA512 ce70755fa26150e8ce870a5f80c7f37a8e09f02ac4dbcfe52de2153b8af6f92764ac6866b1fffb75db6e1ae1b31815432ffca54f2f916337f640c14007a682f3

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.15.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.15.ebuild
new file mode 100644
index 000000000000..06def0bfe1d8
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.15.ebuild
@@ -0,0 +1,119 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="
+	https://github.com/Qiskit/qiskit-aer/
+	https://pypi.org/project/qiskit-aer/
+"
+SRC_URI="
+	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+#
+# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
+DEPEND="
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	<dev-cpp/nlohmann_json-3.10.3
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.9.2:=
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]
+"
+RDEPEND="
+	${DEPEND}
+	>=dev-python/psutil-5[${PYTHON_USEDEP}]
+	>=dev-python/qiskit-1.1.0[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	>=dev-build/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+	)
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [[ $? -ne 0 ]]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# requires qiskit_qasm3_import
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
+	)
+
+	local EPYTEST_IGNORE=(
+		# TODO: qiskit.providers.aer? wtf?
+		test/terra/expression/test_classical_expressions.py
+	)
+
+	# From tox.ini/tests.yml in CI
+	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
+	# a new internal interface that will be the default in jupyter-core 6.x.
+	# This variable should become redundant on release of jupyter-core 6.
+	local -x JUPYTER_PLATFORM_DIRS=1
+
+	rm -rf qiskit_aer || die
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest -s
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-09-13 13:47 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-09-13 13:47 UTC (permalink / raw
  To: gentoo-commits

commit:     5591bcf3da838266c05ef1d3bcd4baf950c434e2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 13 12:44:10 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep 13 13:47:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5591bcf3

dev-python/qiskit-aer: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 -
 dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild | 119 -------------------------
 2 files changed, 120 deletions(-)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index 412a6e7e07b3..f0bb230931db 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1,2 +1 @@
-DIST qiskit-aer-0.14.2.gh.tar.gz 7132159 BLAKE2B bc684f7acca071866bc6413d5fb881cf131fe212be7294922a6861dc526d77d0cfb906d9c2ea57236e42e8a99e137ee0ac5f0c1e11fd027122983ad3d8992f73 SHA512 75a2fadb413fc557f98043cc028b28f6cae65b983fd0f32f1e8b8eda6d5cbc6d9d528c38f765d14ede5909045cef914335a483f762c20c4dd85754449d63371c
 DIST qiskit-aer-0.15.gh.tar.gz 7133462 BLAKE2B 3a72d5e1c97e54dd9090bbd072ca52c03bc90d53ec13bdb52b20112adebde6ef4e85a5d3761d5cc9fab7bc8d41651865e538eaad591dad266533441114ae1ddc SHA512 ce70755fa26150e8ce870a5f80c7f37a8e09f02ac4dbcfe52de2153b8af6f92764ac6866b1fffb75db6e1ae1b31815432ffca54f2f916337f640c14007a682f3

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
deleted file mode 100644
index 06def0bfe1d8..000000000000
--- a/dev-python/qiskit-aer/qiskit-aer-0.14.2.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# Copyright 2022-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} )
-
-inherit distutils-r1
-
-DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
-HOMEPAGE="
-	https://github.com/Qiskit/qiskit-aer/
-	https://pypi.org/project/qiskit-aer/
-"
-SRC_URI="
-	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
-# because importing library causes an error.
-# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
-# Using sci-libs/openblas instead here,
-# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
-#
-# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
-DEPEND="
-	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
-	<dev-cpp/nlohmann_json-3.10.3
-	>=dev-cpp/nlohmann_json-3.1.1
-	>=dev-libs/spdlog-1.9.2:=
-	>=dev-cpp/muParserX-4.0.8
-	virtual/cblas[eselect-ldso]
-	sci-libs/openblas[eselect-ldso]
-"
-RDEPEND="
-	${DEPEND}
-	>=dev-python/psutil-5[${PYTHON_USEDEP}]
-	>=dev-python/qiskit-1.1.0[${PYTHON_USEDEP}]
-	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
-	>=dev-build/cmake-3.17
-	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
-	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
-	test? (
-		dev-python/ddt[${PYTHON_USEDEP}]
-		dev-python/fixtures[${PYTHON_USEDEP}]
-	)
-"
-
-EPYTEST_XDIST=1
-distutils_enable_tests pytest
-
-check_openblas() {
-	local libdir=$(get_libdir) me="openblas"
-
-	# check blas
-	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
-	if [[ ${current_blas} != "${me}" ]]; then
-		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
-		eerror "To use qiskit-aer, you have to issue (as root):"
-		eerror "\t eselect blas set ${libdir} ${me}"
-		return 1
-	fi
-	return 0
-}
-
-pkg_setup() {
-	if use test; then
-		check_openblas
-		if [[ $? -ne 0 ]]; then
-			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
-		fi
-	fi
-}
-
-python_prepare_all() {
-	export DISABLE_CONAN="ON"
-	export DISABLE_DEPENDENCY_INSTALL="ON"
-	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
-
-	distutils-r1_python_prepare_all
-}
-
-python_test() {
-	local EPYTEST_DESELECT=(
-		# requires qiskit_qasm3_import
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
-		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
-	)
-
-	local EPYTEST_IGNORE=(
-		# TODO: qiskit.providers.aer? wtf?
-		test/terra/expression/test_classical_expressions.py
-	)
-
-	# From tox.ini/tests.yml in CI
-	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
-	# a new internal interface that will be the default in jupyter-core 6.x.
-	# This variable should become redundant on release of jupyter-core 6.
-	local -x JUPYTER_PLATFORM_DIRS=1
-
-	rm -rf qiskit_aer || die
-	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-	epytest -s
-}
-
-pkg_postinst() {
-	check_openblas
-}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/
@ 2024-09-13 13:47 Michał Górny
  0 siblings, 0 replies; 30+ messages in thread
From: Michał Górny @ 2024-09-13 13:47 UTC (permalink / raw
  To: gentoo-commits

commit:     ae686fbbdd9efb656e264a27bf0cded6b1ef09f5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 13 12:46:14 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep 13 13:47:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae686fbb

dev-python/qiskit-aer: Bump to 0.15.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qiskit-aer/Manifest                 |   1 +
 dev-python/qiskit-aer/qiskit-aer-0.15.1.ebuild | 119 +++++++++++++++++++++++++
 2 files changed, 120 insertions(+)

diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest
index f0bb230931db..f56ecf03b21c 100644
--- a/dev-python/qiskit-aer/Manifest
+++ b/dev-python/qiskit-aer/Manifest
@@ -1 +1,2 @@
+DIST qiskit-aer-0.15.1.gh.tar.gz 7136084 BLAKE2B 521329642f141fbb5d4bb045f42b53e1a116614328837999d73e28c54fd7e1b8aa64d72080b54950575c264bd14349227b395363cc92ce384f1b4951d414862b SHA512 bd3a320b8022aacc9691e5aa6e54cbc63fe51e623b7b22399ad23ff8e7c14f7870c78b5ca84c0aeb420b44e088307296d01f351bb1cc90488f0018496ebbaa25
 DIST qiskit-aer-0.15.gh.tar.gz 7133462 BLAKE2B 3a72d5e1c97e54dd9090bbd072ca52c03bc90d53ec13bdb52b20112adebde6ef4e85a5d3761d5cc9fab7bc8d41651865e538eaad591dad266533441114ae1ddc SHA512 ce70755fa26150e8ce870a5f80c7f37a8e09f02ac4dbcfe52de2153b8af6f92764ac6866b1fffb75db6e1ae1b31815432ffca54f2f916337f640c14007a682f3

diff --git a/dev-python/qiskit-aer/qiskit-aer-0.15.1.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.15.1.ebuild
new file mode 100644
index 000000000000..06def0bfe1d8
--- /dev/null
+++ b/dev-python/qiskit-aer/qiskit-aer-0.15.1.ebuild
@@ -0,0 +1,119 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="High performance simulator for quantum circuits that includes noise models"
+HOMEPAGE="
+	https://github.com/Qiskit/qiskit-aer/
+	https://pypi.org/project/qiskit-aer/
+"
+SRC_URI="
+	https://github.com/Qiskit/qiskit-aer/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now,
+# because importing library causes an error.
+# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_
+# Using sci-libs/openblas instead here,
+# with the option to switch between reference/openblas implementation runtime (eselect-ldso).
+#
+# <nlohmann_json-3.10.3 for https://github.com/Qiskit/qiskit-aer/issues/1742
+DEPEND="
+	>=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	<dev-cpp/nlohmann_json-3.10.3
+	>=dev-cpp/nlohmann_json-3.1.1
+	>=dev-libs/spdlog-1.9.2:=
+	>=dev-cpp/muParserX-4.0.8
+	virtual/cblas[eselect-ldso]
+	sci-libs/openblas[eselect-ldso]
+"
+RDEPEND="
+	${DEPEND}
+	>=dev-python/psutil-5[${PYTHON_USEDEP}]
+	>=dev-python/qiskit-1.1.0[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	>=dev-build/cmake-3.17
+	>=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.6[${PYTHON_USEDEP}]
+	test? (
+		dev-python/ddt[${PYTHON_USEDEP}]
+		dev-python/fixtures[${PYTHON_USEDEP}]
+	)
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+check_openblas() {
+	local libdir=$(get_libdir) me="openblas"
+
+	# check blas
+	local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+	if [[ ${current_blas} != "${me}" ]]; then
+		eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+		eerror "To use qiskit-aer, you have to issue (as root):"
+		eerror "\t eselect blas set ${libdir} ${me}"
+		return 1
+	fi
+	return 0
+}
+
+pkg_setup() {
+	if use test; then
+		check_openblas
+		if [[ $? -ne 0 ]]; then
+			die "Set blas implementation to openblas using 'eselect blas set openblas'!"
+		fi
+	fi
+}
+
+python_prepare_all() {
+	export DISABLE_CONAN="ON"
+	export DISABLE_DEPENDENCY_INSTALL="ON"
+	export SKBUILD_CONFIGURE_OPTIONS="-DTEST_JSON=1"
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# requires qiskit_qasm3_import
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_1___automatic____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_2___statevector____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_3___matrix_product_state____CPU__
+		test/terra/backends/aer_simulator/test_save_statevector.py::TestSaveStatevector::test_save_statevector_for_qasm3_circuit_4___extended_stabilizer____CPU__
+	)
+
+	local EPYTEST_IGNORE=(
+		# TODO: qiskit.providers.aer? wtf?
+		test/terra/expression/test_classical_expressions.py
+	)
+
+	# From tox.ini/tests.yml in CI
+	# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
+	# a new internal interface that will be the default in jupyter-core 6.x.
+	# This variable should become redundant on release of jupyter-core 6.
+	local -x JUPYTER_PLATFORM_DIRS=1
+
+	rm -rf qiskit_aer || die
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest -s
+}
+
+pkg_postinst() {
+	check_openblas
+}


^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2024-09-13 13:47 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-30  5:16 [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-aer/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2024-09-13 13:47 Michał Górny
2024-09-13 13:47 Michał Górny
2024-08-23 16:44 Michał Górny
2024-07-12 16:27 Michał Górny
2024-07-12 16:10 Michał Górny
2024-05-31  5:28 Michał Górny
2024-05-31  5:22 Michał Górny
2024-05-28 15:27 Michał Górny
2024-02-26 14:25 Michał Górny
2024-02-07  7:39 Michał Górny
2024-01-17  7:41 Michał Górny
2023-11-24 13:42 Michał Górny
2023-10-29  5:07 Michał Górny
2023-10-29  5:07 Michał Górny
2023-10-26 12:19 Michał Górny
2023-08-29 16:20 Michał Górny
2023-08-29 16:20 Michał Górny
2023-08-29 14:56 Michał Górny
2023-08-29 14:56 Michał Górny
2023-08-29 11:33 Michał Górny
2023-05-04 16:56 Michał Górny
2023-03-10  6:20 Sam James
2023-01-27 20:10 Michał Górny
2022-12-21 23:19 Sam James
2022-12-08  5:19 Michał Górny
2022-11-24  9:50 Sam James
2022-11-06 14:06 Michał Górny
2022-10-30 20:41 Sam James
2022-08-08  6:08 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox