Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Hamiltonian tracing #156

Merged
merged 25 commits into from
Feb 2, 2022
Merged

Conversation

zaqqwerty
Copy link
Contributor

@zaqqwerty zaqqwerty commented Jan 31, 2022

Resolves #154

@farice farice force-pushed the 154_hamiltonian_trace_permute branch from 5288b7a to b4d6860 Compare February 1, 2022 18:03
farice
farice previously approved these changes Feb 1, 2022
tests/hamiltonian_infer_test.py Show resolved Hide resolved
tests/hamiltonian_infer_test.py Outdated Show resolved Hide resolved
@farice
Copy link
Contributor

farice commented Feb 1, 2022

jfme: what fixed the test compared to what you had before? I guess it was just to initialize the symbol values non-randomly?

@zaqqwerty
Copy link
Contributor Author

jfme: what fixed the test compared to what you had before? I guess it was just to initialize the symbol values non-randomly?

Two things:

  1. Changing the measured op so that the expectation values were different enough from zero (resolving the energy parameter test)
  2. Adding symbols to the circuit so that there were actually values to change (resolving the circuit parameter test)

@farice
Copy link
Contributor

farice commented Feb 2, 2022

Thanks for the explanation, all is clear

@farice farice merged commit 721b289 into google:main Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test traced Hamiltonian inference after changing energy and qnn parameters
2 participants