def to_qasm(
        self,
        header: str | None = None,
        precision: int = 10,
        qubit_order: cirq.QubitOrderOrList = ops.QubitOrder.DEFAULT,
        version: str = '2.0',
    ) -> str:
        """Returns QASM equivalent to the circuit.

        Args:
            header: A multi-line string that is placed in a comment at the top
                of the QASM. Defaults to a cirq version specifier.
            precision: Number of digits to use when representing numbers.
            qubit_order: Determines how qubits are ordered in the QASM
                register.
            version: Version of OpenQASM to output.  Defaults to OpenQASM 2.0.
                Specify '3.0' if OpenQASM 3.0 is desired.
        """

        return str(self._to_qasm_output(header, precision, qubit_order, version))
Returns QASM equivalent to the circuit.

        Args:
            header: A multi-line string that is placed in a comment at the top
                of the QASM. Defaults to a cirq version specifier.
            precision: Number of digits to use when representing numbers.
            qubit_order: Determines how qubits are ordered in the QASM
                register.
            version: Version of OpenQASM to output.  Defaults to OpenQASM 2.0.
                Specify '3.0' if OpenQASM 3.0 is desired.
        
cirq-core/cirq/circuits/circuit.py