Convenience method to read pyquil.operator_estimation objects from a JSON file.

    See :py:func:`to_json`.

def read_json(fn):
    """Convenience method to read pyquil.operator_estimation objects from a JSON file.

    See :py:func:`to_json`.
    """
    with open(fn) as f:
        return json.load(f, object_hook=_operator_object_hook)