cirq.contrib.quirk.circuit_to_quirk_url

Returns a Quirk URL for the given circuit.

Used in the notebooks

Used in the tutorials

circuit The circuit to open in Quirk.
prefer_unknown_gate_to_failure If not set, gates that fail to convert will cause this function to raise an error. If set, a URL containing bad gates will be generated. (Quirk will open the URL, and replace the bad gates with parse errors, but still get the rest of the circuit.)
escape_url If set, the generated URL will have special characters such as quotes escaped using %. This makes it possible to paste the URL into forums and the command line and etc and have it properly parse. If not set, the generated URL will be more compact and human readable (and can still be pasted directly into a browser's address bar).

Returns: