final first commit

This commit is contained in:
2026-05-19 17:19:36 +08:00
commit b199e2105e
114 changed files with 6844 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
"""Generate random regular graphs for MaxCut QAOA benchmark."""
import json
import networkx
for nqubits in range(4, 31, 2):
graph = networkx.random_regular_graph(3, nqubits)
data = networkx.readwrite.json_graph.node_link_data(graph)
with open(f"randomgraph_3_{nqubits}.json", "w") as file:
json.dump(data, file)