Layout.add(virtual_bit, physical_bit=None)[source]

Adds a map element between bit and physical_bit. If physical_bit is not defined, bit will be mapped to a new physical bit (extending the length of the layout by one.)

Parameters
• virtual_bit (tuple) – A (qu)bit. For example, (QuantumRegister(3, ‘qr’), 2).

• physical_bit (int) – A physical bit. For example, 3.