Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add visualization for repeated routines #128

Merged
merged 2 commits into from
Dec 31, 2024

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