BorrowedBlock

class guppyft.code.iceberg.logical.BorrowedBlock[source]
borrow_more(indices: array[int, M]) array[Qubit, M][source]

Extract dynamic logical qubits from an already-borrowed block.

restore_some(qubits: array[Qubit, M]) None[source]

Restore some dynamic logical qubits to their originating block.