measure_graph_state¶
-
forest.benchmarking.entangled_states.
measure_graph_state
(graph: networkx.classes.graph.Graph, focal_node: int)¶ Given a graph state, measure a focal node and its neighbors with a particular measurement angle.
Parameters: - graph – The graph state graph. This is needed to figure out what the neighbors are
- focal_node – The node in the graph to serve as the focus. The focal node is measured at an angle and all its neighbors are measured in the Z basis
Returns: Program, list of classical offsets into the
ro
register.