swap_intra¶ guppyft.code.toy_k2.logical.swap_intra(blk: Block) → None[source]¶ Logical SWAP within the block, swapping the two logical qubits. Parameters: blk – The logical block to apply the gate to.