create_ghz_program

forest.benchmarking.entangled_states.create_ghz_program(tree: networkx.classes.digraph.DiGraph)

Create a Bell/GHZ state with CNOTs described by tree.

Parameters:tree – A tree that describes the CNOTs to perform to create a bell/GHZ state.
Returns:the program