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

Computing expectation values #366

Open
AdrianPerezSalinas opened this issue Mar 29, 2021 · 0 comments
Open

Computing expectation values #366

AdrianPerezSalinas opened this issue Mar 29, 2021 · 0 comments

Comments

@AdrianPerezSalinas
Copy link
Contributor

Hi all,

I have a question for you: how are numerically computed the expectation values of a Hamiltonian?

I assume that this computation is exact, and we have some state, some matrix, and we just do the bra - H - ket sandwich. However, I would like to know whether there is an option to compute this expectation value using samples, that is, we obtain some string of (0,1) and extract its energy.

I understand this is less efficient than the direct calculation, but it allows us to perform some algorithms such as this one https://quantum-journal.org/papers/q-2020-04-20-256/pdf/

Is it possible to compute hamiltonians in this way?

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