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

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