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

Use dataclass for OpenPulse types #23

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

braised-babbage
Copy link
Collaborator

This adds @dataclass annotations for OpenPulse types. OpenQASM types all have @dataclass, and consistency here can make life easier for code that has to process these (e.g. if we doing some meta-programming for serialization or validation).

Copy link
Collaborator

@aspcompiler aspcompiler left a comment

Choose a reason for hiding this comment

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

LGTM

@braised-babbage braised-babbage merged commit b3a4ae3 into openqasm:main Dec 27, 2023
4 of 6 checks passed
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