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

Refactor to use continuations #78

Merged
merged 6 commits into from
Apr 15, 2024
Merged

Refactor to use continuations #78

merged 6 commits into from
Apr 15, 2024

Conversation

Quantumplation
Copy link
Member

Continuations will avoid constructing new tuples / structs by passing them to the continuation method. Previously this would be super painful to write, but now we have backpassing which makes it much nicer.

We can probably still improve things by removing the SingletonValues

Quantumplation and others added 3 commits April 7, 2024 02:13
Continuations will avoid constructing new tuples / structs by passing
them to the continuation method. Previously this would be super painful
to write, but now we have backpassing which makes it much nicer.

We can probably still improve things by removing the SingletonValues
Continuation passing, and avoid PoolState everywhere. This makes the code awful, but it's significantly more optimized
@Quantumplation Quantumplation requested a review from rrruko April 15, 2024 17:13
@Quantumplation Quantumplation merged commit f2fcafb into main Apr 15, 2024
1 check passed
@Quantumplation Quantumplation deleted the pi/continuations branch April 15, 2024 17:18
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