ProjectQ-Framework / FermiLib

FermiLib: Open source software for analyzing fermionic quantum simulation algorithms
https://projectq.ch/
Apache License 2.0
86 stars 38 forks source link

Minor fixes to InteractionRDM #73

Closed jarrodmcc closed 7 years ago

jarrodmcc commented 7 years ago

Interaction RDM's expectation functionality was out of date and contained some peculiar hold overs from previous QubitOperator format. In particular it removed the identity internally, which required one to add it externally. Everything functions as expected if both of these removal/additions are removed at the same time.