Skip to content
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

QAOARuntime with CVAR optimization #515

Closed
ghellstern opened this issue May 22, 2023 · 3 comments
Closed

QAOARuntime with CVAR optimization #515

ghellstern opened this issue May 22, 2023 · 3 comments
Assignees

Comments

@ghellstern
Copy link

Environment

Qiskit Software Version
qiskit-terra 0.24.0
qiskit-aer 0.12.0
qiskit-ignis 0.6.0
qiskit-ibmq-provider 0.20.2
qiskit 0.43.0
qiskit-nature 0.3.1
qiskit-finance 0.2.0
qiskit-optimization 0.5.0
qiskit-machine-learning 0.2.1

Python version | 3.7.9
Python compiler | GCC 7.3.0
Python build | default, Aug 31 2020 12:42:55
OS | Linux
CPUs | 4
Memory (Gb) | 15.650867462158203

What is happening?

In the tutorial https://qiskit.org/ecosystem/optimization/tutorials/12_qaoa_runtime.html QAOAClient produces an error when alpha=0.75 ist used. When removing alpha everythin is fine. See attached notebook.

QAOA_client.zip

How can we reproduce the issue?

See Notebook

What should happen?

QAOAClient should work with alpha<1.0

Any suggestions?

No response

@Cryoris
Copy link
Contributor

Cryoris commented May 22, 2023

I can reproduce the above and looking at the error codes it seems the CVaRMeasurement is given an unsupported input:

[...]
2023-05-22T12:47:42.644038453Z     raise ValueError("Unsupported input to CVaRMeasurement.eval:", type(front))
2023-05-22T12:47:42.644047641Z ValueError: ('Unsupported input to CVaRMeasurement.eval:', )

Edit: Locally using the CVaRExpectation with the old QAOA code works as expected, this seems to be an issue of the runtime code only.

@ghellstern
Copy link
Author

Maybe I should add the discussion on the Slack channel with Steve Wood:

https://qiskit.slack.com/archives/CB6C24TPB/p1684506534062659

@t-imamichi
Copy link
Collaborator

t-imamichi commented Sep 8, 2023

QAOARuntime and QAOAClient have been removed #542 because they are replaced with primitives and session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants