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

Add support for arbitrary observables #6

Open
jlbosse opened this issue Oct 21, 2022 · 1 comment
Open

Add support for arbitrary observables #6

jlbosse opened this issue Oct 21, 2022 · 1 comment

Comments

@jlbosse
Copy link
Collaborator

jlbosse commented Oct 21, 2022

Currently only observables that are squares of Majoranas are supported in expect(). But generally, it is possible to calculate $⟨ψ|O|ψ⟩$ for arbitrary operators $O$ of the form $O = ∏_i L_i = ∏_i (∑_j O_{ij} γ_j)$ by calculating the pfaffian of the two-point matrix $M_{ij} = ⟨ψ|L_i L_j|ψ⟩$.

@jlbosse
Copy link
Collaborator Author

jlbosse commented Sep 21, 2023

By linearity of the expectation value this means arbitrary observables can be computed, as long as they are expressed as sums of Majorana-strings. But if the observables are given in above form the computation is much more efficient, so the question will be how to best decompose an arbitrary observable

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