cirq.quil

THIS FUNCTION IS DEPRECATED.

IT WILL BE REMOVED IN cirq v1.0.

Use cirq_rigetti.quil_ouput.QuilOutput instead.

Returns the QUIL code for the given value.

Args:
    val: The value to turn into QUIL code.
    qubits: A list of qubits that the value is being applied to. This is
        needed for <a href="../cirq/Gate"><code>cirq.Gate</code></a> values, which otherwise wouldn't know what
        qubits to talk about.
    formatter: A `QuilFormatter` object for properly ouputting the `_quil_`
        method in a QUIL format.

Returns:
    The result of `val._quil_(...) if `val` has a `_quil_` method.
    Otherwise, returns `None`. (`None` normally indicates that the
    `_decompose_` function should be called on `val`)