measure_z_all¶ guppyft.code.toy_k2.primitives.measure_z_all(blk: LogicalBlock[4]) → tuple[bool, bool][source]¶ Measure both qubits of the block in the Z basis. This operation destroys the logical block.