Skip to content

Error in creating the experimental_min_eigenvalue_ref #3718

@DikranMelksetian

Description

@DikranMelksetian

URL to the relevant course

https://quantum.cloud.ibm.com/learning/en/courses/variational-algorithm-design/examples-and-applications

Select all that apply

  • new content request
  • typo
  • code bug
  • out-of-date content
  • broken link
  • other

Describe the fix or the content request.

In the section, where the experimental_min_eigenvalue_ref is calculated, we should be using the ref_result.x and the ref_ansatz instead of result.x and raw_ansatz:
That is:

experimental_min_eigenvalue_ref = cost_func_vqe(
    result.x, raw_ansatz, observable_1, estimator
)
print(experimental_min_eigenvalue_ref)

should be:

experimental_min_eigenvalue_ref = cost_func_vqe(
    ref_result.x, ref_ansatz, observable_1, estimator
)
print(experimental_min_eigenvalue_ref)

For new content requests - if the request is accepted, do you want to write the content?

I will write (or already have written) a draft of the proposed content

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions