qml.decomposition.toggle_graph_ctx

toggle_graph_ctx(new_state)

A context manager in which graph is enabled or disabled temporarily.