Formatting
You can convert your compiled circuit into its textual representation by converting it to string:
str(circuit)
If you just want to see the output on your terminal, you can directly print it as well:
print(circuit)
Formatting is just for debugging purposes. It's not possible to create the circuit back from its textual representation. See How to Deploy if that's your goal.
Last modified 1mo ago