h¶ guppyft.code.toy_k2.logical.h(block: Block, idx: int) → None[source]¶ Logical Hadamard gate on the specified logical qubit. Parameters: block – The logical block to apply the gate to. idx – The index of the logical qubit to apply the gate to (0 or 1).