Skip to content

Conversation

@mstechly
Copy link
Contributor

Description

Adds visualization to QREF subroutine with repetitions.

It looks like this:

Screenshot 2024-12-30 at 6 22 45 PM

Code for repro (from qref/tests/qref/data/valid_programs directory):

import yaml
import glob
from qref.experimental.rendering import to_graphviz
paths = glob.glob("programs_with_repetitions/*")
valid_programs = []
for path in paths:
    with open(path) as f:
        data = yaml.safe_load(f)
        valid_programs.append(data["input"])
to_graphviz(valid_programs[0])

Please verify that you have completed the following steps

  • I have self-reviewed my code.
  • I have included test cases validating introduced feature/fix. (NA)
  • I have updated documentation. (NA)

@mstechly mstechly requested a review from dexter2206 December 30, 2024 17:24
@cla-bot cla-bot bot added the cla-signed label Dec 30, 2024
@mstechly mstechly merged commit 31b286c into main Dec 31, 2024
6 checks passed
@mstechly mstechly deleted the 127-visualization-for-repeated branch December 31, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants