tqec.computation.abstract_observable.correlation_surface_to_abstract_observable#
- correlation_surface_to_abstract_observable(block_graph: BlockGraph, correlation_surface: CorrelationSurface, validate_graph: bool = True) AbstractObservable [source]#
Convert a correlation surface to an abstract observable.
You need to provide a correlation surface that is valid in the corresponding
ZXGraph
of the block graph. Otherwise, the behavior is undefined.- Parameters:
block_graph – The block graph containing the correlation surface.
correlation_surface – The correlation surface to convert.
validate_graph – Whether to validate the block graph before conversion.
- Returns:
The abstract observable derived from the correlation surface.