steane_encoding#
- tqec.gallery.steane_encoding(observable_basis=None)[source]#
Create a block graph that represents a Steane encoding circuit. The block graph is created from a DAE file that describes the circuit.
- Parameters:
observable_basis (Basis | None) – The observable basis that the block graph can support. If None, the block graph will have open ports. Otherwise, the ports will be filled with the given observable basis.
- Returns:
A
BlockGraph
instance.- Return type:
BlockGraph