def METHOD_NAME(self, p: Any, cycle: bool):
    """iPython (Jupyter) pretty print."""
    if cycle:
        # There should never be a cycle.  This is just in case.
        p.text('StateVectorTrialResult(...)')
    else:
        p.text(str(self))