New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3Packages.qiskit: 0.19.6 -> 0.20.0 & update components #95713
python3Packages.qiskit: 0.19.6 -> 0.20.0 & update components #95713
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohterwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, retworkx in python-modules
needs to be changed since it's not a normal buildPythonPackage
.
original:
retworkx = callPackage ../development/python-modules/retworkx { };
correct:
retworkx = toPythonModule(callPackage ../development/python-modules/retworkx { });
do you mind looking at #95527 as well? |
Uses feedback from NixOS/nixpkgs#95713
f7c5df7
to
1c5d37c
Compare
Addressed all comments. Building locally now. Only outstanding item IMHO is maybe running self-test on 🤦 on changing |
73610b2
to
ed4dbb4
Compare
OK. Worked out last few bugs.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seeing some issues with aqua:
https://github.com/NixOS/nixpkgs/pull/95713
6 packages failed to build:
python37Packages.qasm2image python37Packages.qiskit python37Packages.qiskit-aqua python38Packages.qasm2image python38Packages.qiskit python38Packages.qiskit-aqua
20 packages built:
muparserx python27Packages.multitasking python27Packages.pylatexenc python27Packages.yfinance python37Packages.multitasking python37Packages.pylatexenc python37Packages.qiskit-aer python37Packages.qiskit-ibmq-provider python37Packages.qiskit-ignis python37Packages.qiskit-terra python37Packages.retworkx python37Packages.yfinance python38Packages.multitasking python38Packages.pylatexenc python38Packages.qiskit-aer python38Packages.qiskit-ibmq-provider python38Packages.qiskit-ignis python38Packages.qiskit-terra python38Packages.retworkx python38Packages.yfinance
the failure:
=================================== FAILURES ===================================
__________________________ TestOptimizers.test_p_bfgs __________________________
self = <test.aqua.test_optimizers.TestOptimizers testMethod=test_p_bfgs>
def test_p_bfgs(self):
""" parallel l_bfgs_b test """
optimizer = P_BFGS(maxfun=1000)
res = self._optimize(optimizer)
> self.assertLessEqual(res[2], 10000)
E AssertionError: 44250 not less than or equal to 10000
test/aqua/test_optimizers.py:69: AssertionError
@jonringer this is probably another massively-parallel CPU issue... the test runs an optimizer that distributes across the cores (https://github.com/Qiskit/qiskit-aqua/blob/72a6fb3b40accfe18b77bfb8c811aa94a7afa443/qiskit/aqua/components/optimizers/p_bfgs.py#L90), which each run an optimization and the number of function evalutions are summed across the processes and assumed to be < 10000 in the test. I'll open an upstream issue, but in the meantime I feel comfortable disabling this test to get this PR to pass since I've not had this issue locally or on the GitHub Actions build of my NUR repo. EDIT: upstream issue. qiskit-community/qiskit-aqua#1214 |
Also compile from source using Rust. Now possible b/c pyo3/maturin work on Rust stable.
Dependency for python3Packages.yfinance
ed4dbb4
to
fd1ca04
Compare
lol, yes, $4k cpu :) |
That is the CPU you tested it against, right? |
yes
right, or AMD's rome 7742 also has 64/128 https://www.newegg.com/amd-epyc-7742-socket-sp3/p/N82E16819113581 |
fd1ca04
to
b0c0c50
Compare
@jonringer pushed the patch upstream made. Hoping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff LGTM
https://github.com/NixOS/nixpkgs/pull/95713
26 packages built:
muparserx python27Packages.multitasking python27Packages.pylatexenc python27Packages.yfinance python37Packages.multitasking python37Packages.pylatexenc python37Packages.qasm2image python37Packages.qiskit python37Packages.qiskit-aer python37Packages.qiskit-aqua python37Packages.qiskit-ibmq-provider python37Packages.qiskit-ignis python37Packages.qiskit-terra python37Packages.retworkx python37Packages.yfinance python38Packages.multitasking python38Packages.pylatexenc python38Packages.qasm2image python38Packages.qiskit python38Packages.qiskit-aer python38Packages.qiskit-aqua python38Packages.qiskit-ibmq-provider python38Packages.qiskit-ignis python38Packages.qiskit-terra python38Packages.retworkx python38Packages.yfinance
cc @FRidh does the rust -> python retworkx
changes look good to you?
I think i mentioned it somewhere else, but i had to drop the |
Motivation for this change
Updates
python3Packages.qiskit
to v0.20.0, as well as updates all components.Some components require new packages, which were added (
muparserx, pythonPackages.yfinance (which requires pythonPackages.multitasking)
).Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)