Hi @CatalinaAlbornoz ,
Thank you very much! It does work indeed, however only on the test code, because when I run it on my main code, it throws the same error as the one I mentioned in a separate topic here. The problem arises when I set more than one Trotter step. I run into this error message:
ValueError: Cannot calculate ancestors for an operator that occurs multiple times.
I’ve read your response there and I’ll look into the PR you suggested to see if that would fix this.