class_docstr: Test that the QASM serialization works correctly
  when circuits are created via QNodes.
class_docstr_tok: ["Test","that","the","QASM","serialization","works","correctly","when","circuits","are","created","via","QNodes","."]
docstr: Test that the QASM serializer takes into account the desired precision.
docstr_tok: ["Test","that","the","QASM","serializer","takes","into","account","the","desired","precision","."]
code: def test_precision(self):
      """Test that the QASM serializer takes into account the desired precision."""
      dev = qml.device("default.qubit", wires=["a"])
  
      @qml.qnode(dev)
      def qnode():
          qml.RX(np.pi, wires="a")
          return qml.expval(qml.PauliZ("a"))
  
      qnode()
      res = qnode.qtape.to_openqasm(precision=4)
  
      expected = dedent(
          """\
              OPENQASM 2.0;
              include "qelib1.inc";
              qreg q[1];
              creg c[1];
              rx(3.142) q[0];
              measure q[0] -> c[0];
              """
      )
  
      assert res == expected
  
imports: from textwrap import dedent
  import numpy
  import pytest
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 11 for calling the TestQNodeQasmIntegrationTests obj's underlying member method code with example usage: obj.test_precision() and returns: qml