[docs]@guppy@no_type_checkdefdiscard(self:"LogicalBlock[BLOCK_SIZE]"@owned)->None:"""Discard the logical block and all qubits in ``data_qs``."""discard_array(self.data_qs)
[docs]@guppy@no_type_checkdefput_into_array(self:"LogicalBlock[BLOCK_SIZE]"@owned,arr:array[qubit,BLOCK_SIZE])->None:"""Put the qubits of the logical block into the array (using `.put`) and discard the block."""foriinrange(BLOCK_SIZE):arr.put(self.data_qs.take(i),i)self.data_qs.discard_all_taken()