allow file objects as well as filenames to be passed to render_state()
added _repr_svg_() and _repr_png_() methods to QuantumBitMachine