Skip to content

Conversation

@arunjmoorthy
Copy link
Collaborator

Summary of changes

Fixes issue 217 by adding a merge function, so two QasmModule objects can be combined into one. The merge function unrolls both modules and creates a single qubit declaration. This function appends the second QasmModule object with the correct index offsets and returns a Qasm3Module.

The test_merge.py file is added, which has a few examples of merging two modules, using the merge function.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2025

👋 Hey there! It looks like the changelog might need an update.

Please take a moment to edit the CHANGELOG.md with:

  • A brief, one-to-two sentence summary of your changes.
  • A link back to this PR for reference.
  • (Optional) A small working example if you've added new features.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2025

🚫 Logo Change Blocked

Changes to docs/_static/logo.png are not allowed in pull requests.

Why is this blocked?

  • The logo is a protected asset that should only be updated by repository maintainers
  • This helps maintain brand consistency and prevents unauthorized logo changes

What should you do?

  • Remove the logo.png changes from this PR
  • If you need to update the logo, please contact the repository maintainers directly

Files changed in this PR:

Unable to retrieve changed files

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 63.04348% with 34 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pyqasm/modules/base.py 63.04% 34 Missing ⚠️

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2025

🚫 Logo Change Blocked

Changes to docs/_static/logo.png are not allowed in pull requests.

Why is this blocked?

  • The logo is a protected asset that should only be updated by repository maintainers
  • This helps maintain brand consistency and prevents unauthorized logo changes

What should you do?

  • Remove the logo.png changes from this PR
  • If you need to update the logo, please contact the repository maintainers directly

Files changed in this PR:

Unable to retrieve changed files

@github-actions
Copy link
Contributor

🚫 Logo Change Blocked

Changes to docs/_static/logo.png are not allowed in pull requests.

Why is this blocked?

  • The logo is a protected asset that should only be updated by repository maintainers
  • This helps maintain brand consistency and prevents unauthorized logo changes

What should you do?

  • Remove the logo.png changes from this PR
  • If you need to update the logo, please contact the repository maintainers directly

Files changed in this PR:

Unable to retrieve changed files

@TheGupta2012
Copy link
Member

Closing in favour of #267

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