Exemplo n.º 1
0
 def test_layout_idle_physical_bits(self):
     """Get physical_bits that are not mapped"""
     layout = Layout()
     layout.add((self.qr, 1), 2)
     layout.add(None, 4)
     layout.add(None, 6)
     self.assertEqual(layout.idle_physical_bits(), [4, 6])
Exemplo n.º 2
0
 def test_layout_idle_physical_bits(self):
     """Get physical_bits that are not mapped"""
     layout = Layout()
     layout.add((self.qr, 1), 2)
     layout.set_length(4)
     self.assertEqual(layout.idle_physical_bits(), [0, 1, 3])