Entangled States

The module entangled_states.py allows you to simply create graph states GHZ states.

create_ghz_program(tree) Create a Bell/GHZ state with CNOTs described by tree.
ghz_state_statistics(bitstrings) Compute statistics bitstrings sampled from a Bell/GHZ state
create_graph_state(graph[, use_pragmas]) Write a program to create a graph state according to the specified graph
measure_graph_state(graph, focal_node) Given a graph state, measure a focal node and its neighbors with a particular measurement angle.
compiled_parametric_graph_state(compiler, …) Construct a program to create and measure a graph state, map it to qubits using addressing, and compile to an ISA.