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

Update entrypoint methods #76

Merged
merged 4 commits into from
Nov 14, 2024
Merged

Update entrypoint methods #76

merged 4 commits into from
Nov 14, 2024

Conversation

TheGupta2012
Copy link
Member

Summary of changes

This pull request introduces several changes to the pyqasm library, primarily focusing on adding new functions for loading and dumping QASM programs, as well as updating existing code to use these new functions. The changes also include updates to documentation and tests to reflect these new functions.

New Functions and Updates:

  • pyqasm/entrypoint.py: Added new functions loads, dump, and dumps to handle QASM program loading and dumping. The load function was updated to read from a file and call loads. [1] [2] [3]

Documentation Updates:

Code Refactoring:

  • Updated various example scripts and documentation files to use the new loads and dumps functions instead of load and dumps methods.

Test Updates:

  • Updated test files to use the new loads and dumps functions. This includes changes across multiple test files to ensure compatibility with the new functions.

Internal Function Renaming:

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

pyqasm/modules/base.py Outdated Show resolved Hide resolved
@TheGupta2012 TheGupta2012 merged commit cc88012 into main Nov 14, 2024
6 checks passed
@TheGupta2012 TheGupta2012 deleted the add-load-dump branch November 14, 2024 06:26
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