code: def read_json(fn):
      
      with open(fn) as f:
          return json.load(f, object_hook=_operator_object_hook)
docs: Convenience method to read pyquil.operator_estimation objects from a JSON file.
  
      See :py:func:`to_json`.