Skip to content

Ok so I finally got Viveks code to compile by doing the 2 following t…#47

Open
DogeDevYT wants to merge 5 commits into
gt-tinker:wip/repl22from
DogeDevYT:wip/vivek-repl-fix
Open

Ok so I finally got Viveks code to compile by doing the 2 following t…#47
DogeDevYT wants to merge 5 commits into
gt-tinker:wip/repl22from
DogeDevYT:wip/vivek-repl-fix

Conversation

@DogeDevYT

Copy link
Copy Markdown
Contributor

…hings:

  1. Modifying the ast.rs code to check close to 0 to account for angles close to 360 degrees, therefore 0
  2. changing the eval_step() function at line 429 to return a UnitLiteral or a singular QubitRef when the items in our vals vector is 0 or 1 respectively

I also split up the unit tests to be by purpose for the poster as well so it would be easier to test if something breaks.

akshaydaf and others added 2 commits May 27, 2026 18:58
…hings:

1. Modifying the ast.rs code to check close to 0 to account for angles close to 360 degrees, therefore 0
2. changing the eval_step() function at line 429 to return a UnitLiteral or a singular QubitRef when the items in our vals vector is 0 or 1 respectively

I also split up the unit tests to be by purpose for the poster as well so it would be easier to test if something breaks.

@ausbin ausbin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to my comments/questions, can you please run cargo fmt inside qwerty_ast/? If you are inside qwerty_pyrt, you can do this conveniently with pushd ../qwerty_ast; cafgo fmt; popd

Comment thread qwerty_pyrt/python/qwerty/tests/test_repl.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What you did here is much better unit testing than what I was originally doing, thanks for that

Comment thread qwerty_ast/src/repl.rs
Comment thread qwerty_ast/src/ast.rs
DogeDevYT and others added 3 commits June 8, 2026 15:12
gt-tinker#46)

* So I think I got the docs edited right lowkenuinely

* ok this should fix the weird permission issue + get the formatting right on docs/testing.md

* remove .gitattributes

* fix qir_runner submodule staging + edit testign docs

* Sync qir_runner with upstream main
Get this to be most updated changes on repo for future updates
@DogeDevYT

Copy link
Copy Markdown
Contributor Author

I think that new stuff from submodules is just what akshay added with his MLIR lowering code but lmk if I'm mistaken.

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.

3 participants