Skip to content

Expectation values of Pauli strings? #43

@BoltzmannEntropy

Description

@BoltzmannEntropy

Hello,
For a tutorial, I am trying to do something very simple, calculating the expectation value of:
image
Instead of:

hamiltonian = random_pauli_str_generator(N, terms=1)

How can i specify my own Hamiltonian to compare the value with the theoretical one?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions