You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
Make sure you've read the documentation. Your issue may be addressed there.
Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
If possible, make a PR with a failing test to give us a starting point to work on!
Describe the bug
Creating a SpinOperator and observing the expectation value of a kernel with a given operator took a performance hit from v0.8.0 to v0.9.0.
I'm experimenting on a GH200 and getting the following slowdowns with a 20 qubit kernel and a Hamiltonian created from 3000 random SpinOperators: SpinOperator creation: 22x cudaq.observe duration: 46x
Steps to reproduce the bug
Create the file obs.py with the following content:
For those looking into to this: I can reproduce the issue. The problem seems to lie on the new SpinOperator and its lazy evaluation capabilities. Using the old one shows no performance regression.
Using the following create_spin_operator function:
Required prerequisites
Describe the bug
Creating a SpinOperator and observing the expectation value of a kernel with a given operator took a performance hit from v0.8.0 to v0.9.0.
I'm experimenting on a GH200 and getting the following slowdowns with a 20 qubit kernel and a Hamiltonian created from 3000 random SpinOperators:
SpinOperator
creation: 22xcudaq.observe
duration: 46xSteps to reproduce the bug
Create the file
obs.py
with the following content:I am getting the following times on a GH200 machine:
Version: 0.8.0
Version: cu12-0.9.0
cu12-latest, cu11-latest, and cu12-0.9.0 have comparable running times.
Expected behavior
I expect the latest version to have comparable running times to the previous stable version (v0.8.0).
Is this a regression? If it is, put the last known working version (or commit) here.
Performance regression from v0.8.0
Environment
Suggestions
No response
The text was updated successfully, but these errors were encountered: