def _repr_svg_(self): return _latex_compile(self.latex_code(), format="svg")
def _repr_png_(self): return _latex_compile(self.latex_code(), format="png")
def save_circuit(qc, filename): _latex_compile(qc.latex_code(), filename=filename)