class_docstr: Tests ``default_bit_map`` helper function.
class_docstr_tok: ["Tests","``","default_bit_map","``","helper","function","."]
docstr: Test that the bit_map contains only measurements that are used.
docstr_tok: ["Test","that","the","bit_map","contains","only","measurements","that","are","used","."]
code: def test_simple(self):
      """Test that the bit_map contains only measurements that are used."""
  
      m0 = qml.measure(0)
      m1 = qml.measure(1)
      m2 = qml.measure(2)
      cond0 = qml.ops.Conditional(m0, qml.S(0))
      mp0 = qml.expval(m1)
  
      queue = [
          m0.measurements[0],
          m1.measurements[0],
          m2.measurements[0],
          cond0,
          mp0,
      ]
      bit_map = default_bit_map(queue)
      assert bit_map == {m0.measurements[0]: 0, m1.measurements[0]: 1}
  
imports: import pytest
  import pennylane
  from pennylane.drawer.utils import default_wire_map, default_bit_map, convert_wire_order, unwrap_controls, cwire_connections
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TestDefaultBitMap obj's underlying member method code with example usage: obj.test_simple() without return types