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

Batch Refactor #521

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from
Draft

Batch Refactor #521

wants to merge 8 commits into from

Conversation

apchytr
Copy link
Collaborator

@apchytr apchytr commented Nov 8, 2024

Context: Currently in develop, there is no interface explicitly defined for the handling of batch dims. This makes things such as adding new batch dimensions (e.g. for measurement outcomes) difficult. Additionally, we wish to introduce the concept of "batch labels" where ideally some class is responsible for the handling of batch labels. As such, in this PR we introduce the Batch class.

Description of the Change: Introduce the Batch class.

Benefits: Having a concrete interface means a cleaner, safer implementation of batching where we can now define arbitrary batch dims and attribute batch labels to them (for mrm einsum).

@apchytr apchytr added WIP work in progress no changelog Pull request does not require a CHANGELOG entry labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Pull request does not require a CHANGELOG entry WIP work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant