Open jlapeyre opened 4 years ago
This code mutates the coefficient attribute of PauliTerm directly
coefficient
PauliTerm
https://github.com/rigetti/forest-benchmarking/blob/61a468f1ee62ac34913fc269207720fe49149104/forest/benchmarking/observable_estimation.py#L1001-L1003
But, PauliTerm offers a an interface that does the same thing
https://github.com/rigetti/pyquil/blob/d45246d183a7308187bc28442c73714e87f7c25a/pyquil/paulis.py#L557-L570
This code mutates the
coefficient
attribute ofPauliTerm
directlyhttps://github.com/rigetti/forest-benchmarking/blob/61a468f1ee62ac34913fc269207720fe49149104/forest/benchmarking/observable_estimation.py#L1001-L1003
But,
PauliTerm
offers a an interface that does the same thinghttps://github.com/rigetti/pyquil/blob/d45246d183a7308187bc28442c73714e87f7c25a/pyquil/paulis.py#L557-L570