Optimize and restore QHybrid
We got to the bottom of the problem with QHybrid
performance, and, with apologies, it had nothing to do with either "driver changes" or "speculative execution": since QHybrid
was first entered into the library, optimized methods on QEngineOCL
and QEngineCPU
remained without direct exposure via the QHybrid
layer. Making sure that the full public API was exposed via QHybrid
fixed the issue. (It blows my mind that we went this long without MAll()
exposed from the wrapped types under QHybrid
.) Similarly, the incorrect results from QPager
are a known issue where the engine type doesn't work with numbers of qubits smaller than its threshold for at least two "pages" in the simulator type, which is entirely avoided by wrapping in QHybrid
.
(I owe an apology for mouthing off. No one was going to realize this problem but me, but, when something seems to work in the library for literally years, and then I notice it's sub-optimal, it's easy to reflexively blame driver and firmware changes before setting out to fix the problem of necessity, anyway.)
What's Changed
- Replace deprecated
QubitStateVector
withStatePrep
by @andrijapau in #27
New Contributors
- @andrijapau made their first contribution in #27
Full Changelog:
unitaryfund/qrack@vm6502q.v9.12.33...vm6502q.v9.12.34
unitaryfund/pyqrack@v1.32.27...v1.32.28
v0.10.16...v0.10.18
sha1sum results:
d5d618f88a0c58bcebf729b5a66a39070f3a495b pennylane_qrack-0.10.18-py3-none-macosx_13_0_x86_64.whl
e850b6aaa44bcb313f60a310f92c7a58b37d7b00 pennylane_qrack-0.10.18-py3-none-macosx_14_0_arm64.whl
0037835efd8cc6ce78865c5da6fe9b9748ed7129 pennylane_qrack-0.10.18-py3-none-macosx_15_0_arm64.whl
e3555ff7e78289839bbbb030fd9577d6f50a7b1f pennylane_qrack-0.10.18-py3-none-manylinux_2_31_x86_64.whl
faac6611ae866484df56455514e34f16053ae056 pennylane_qrack-0.10.18-py3-none-manylinux_2_35_x86_64.whl
f6b54f68adad6d4eea2ea01381eb114cc534bab8 pennylane_qrack-0.10.18-py3-none-manylinux_2_39_x86_64.whl
28f7b298f411bc5b7db2f668f530f7bb72beacf1 pennylane_qrack-0.10.18-py3-none-win_amd64.whl
11d96ad41a8c3442ad906a825e0e1f9242f6fcea pennylane_qrack-0.10.18.tar.gz