Skip to content

Problem with the 'return_all' parameter in the 'vqe_run' #219

@altaranus

Description

@altaranus

Hello.

While running the
'result = vqe_inst.vqe_run(.....)' function, in accordance with the documentation I set the parameter 'return_all = True' in order to get the intermediate values (of expectations and ansatz parameters) in all iterations. However, when I ask for the result['expectation_vals'] , I get the empty array.
The same for the 'iteration_params'

What is the problem? Is it a bug?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions