cx_intra¶
- guppyft.code.toy_k2.primitives.cx_intra(blk: LogicalBlock[4], target: int) None[source]¶
Logical CX within the block, targeting the specified logical qubit.
- Parameters:
blk – The logical block to apply the gate to.
target – The index of the logical qubit that acts as target (0 or 1). The other logical qubit acts as control.