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

Qumin2 #3

Merged
merged 5 commits into from
Mar 6, 2025
Merged

Qumin2 #3

merged 5 commits into from
Mar 6, 2025

Conversation

WashimNeupane
Copy link
Collaborator

Added tests
Added QIR lowering
Cleaned code

@WashimNeupane WashimNeupane requested a review from lschuetze March 3, 2025 10:42
MLIRContext *ctx = getContext();

// Generate a unique integer ID for the qubit
static int64_t nextQubitId = 0;
Copy link
Member

Choose a reason for hiding this comment

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

This should be an analyis that maps values to indexes. Using static is very hacky.

MLIRContext *ctx = getContext();

// Generate a unique integer ID for the qubit
static int64_t nextResultId = 0;
Copy link
Member

Choose a reason for hiding this comment

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

Same here w.r.t. how to compute an index.

@lschuetze lschuetze merged commit a5b8001 into main Mar 6, 2025
2 checks passed
@lschuetze lschuetze deleted the qumin2 branch March 7, 2025 09:37
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.

2 participants