New module with stand-alone functions for computation of expected values#1716
Draft
andre-juan wants to merge 19 commits intomasterfrom
Draft
New module with stand-alone functions for computation of expected values#1716andre-juan wants to merge 19 commits intomasterfrom
andre-juan wants to merge 19 commits intomasterfrom
Conversation
for more information, see https://pre-commit.ci
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1716 +/- ##
==========================================
- Coverage 99.16% 98.14% -1.02%
==========================================
Files 80 81 +1
Lines 12751 12883 +132
==========================================
Hits 12644 12644
- Misses 107 239 +132
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves to #1715
Implementation of a new module with functions for the calculation of the expected value of a Hamiltonian expressed as a linear combination of Pauli words, either in infinite precision from the state (by building a sparse matrix for each Pauli word separately); or from samples (by performing the appropriate measurements, including the grouping of commuting terms).
Here's a simple example executing the new functions for the Heisenberg XXZ model Hamiltonian on
n=4qubits withdelta=0.5:Checklist: