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 unused wires are correctly taken into account
docstr_tok: ["Test","that","unused","wires","are","correctly","taken","into","account"]
code: def test_unused_wires(self):
      """Test that unused wires are correctly taken into account"""
      dev = qml.device("default.qubit", wires=5)
  
      @qml.qnode(dev)
      def qnode():
          qml.Hadamard(wires=4)
          qml.CNOT(wires=[1, 0])
          return qml.expval(qml.PauliZ(0))
  
      # construct the qnode circuit
      qnode()
      res = qnode.qtape.to_openqasm(wires=dev.wires)
  
      expected = dedent(
          """\
              OPENQASM 2.0;
              include "qelib1.inc";
              qreg q[5];
              creg c[5];
              h q[4];
              cx q[1],q[0];
              measure q[0] -> c[0];
              measure q[1] -> c[1];
              measure q[2] -> c[2];
              measure q[3] -> c[3];
              measure q[4] -> c[4];
              """
      )
  
      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 4 for calling the TestQNodeQasmIntegrationTests obj's underlying member method code with example usage: obj.test_unused_wires() and returns: qml