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

Lab 4 evaluate_expectation function results bug #29

Open
HuangJunye opened this issue Nov 18, 2022 · 1 comment
Open

Lab 4 evaluate_expectation function results bug #29

HuangJunye opened this issue Nov 18, 2022 · 1 comment

Comments

@HuangJunye
Copy link

In Lab 4, Calculate the ground state of H3+ section

# Define evaluate_expectation function
def evaluate_expectation(x):
    x = list(x)
    
    # Define estimator run parameters
    #### enter your code below ####
    job = # ----------- Enter your code here
    results = job.values[0]
    job_list.append(job)
    
    # Pass results back to callback function
    return np.real(results)

results = job.values[0] should be results = job.result().values[0]

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

1 participant