Skip to content

Conversation

@matulni
Copy link
Collaborator

@matulni matulni commented Oct 3, 2025

This commit adds the new function :func:graphix.random_objects.rand_og_gflow which generates random open graphs with gflow. In particular:

  • Open graphs can have an arbitrary number of nodes n.
  • Open graphs can have an arbitrary number of outputs n <= n_o.
  • Measurement planes for the non-output nodes can be fully specified or fully chosen at random.

The function implements the PGA algorithm [1] which guarantees that any open graph can be generated.

Additional comments

The module graphix.random_objects is not type-safe (although the functions introduced in this PR are). It could also benefit from some cleansing and refactoring, but I guess it's not a priority.

References

[1] "Generation of random open graph with gflow" Rajarsi Pal, Harold Ollivier, Graphix Workshop, Inria, 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant