h#

tqec.gallery.h(observable_basis=None)[source]#

Create a block graph for the logical Hadamard gate, using a temporal Hadamard pipe.

Parameters:

observable_basis (Basis | None) – The observable basis that the block graph can support. If None, the two ports of the block graph will be left open. Otherwise, the ports will be filled with the cubes that have the initializations and measurements in the given observable basis.

Returns:

A BlockGraph instance representing the logical Hadamard gate.

Return type:

BlockGraph