Beispiel #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.set_length(4)
     self.assertEqual(layout.idle_physical_bits(), [0, 1, 3])
Beispiel #2
0
 def test_layout_set_len(self):
     """Length setter"""
     layout = Layout()
     layout.add((self.qr, 1), 3)
     layout.set_length(4)
     self.assertEqual(len(layout), 4)