Skip to content

Conversation

@TendonFFF
Copy link
Collaborator

@TendonFFF TendonFFF commented Jun 27, 2025

Checklist

Thank you for contributing to QuantumToolbox.jl! Please make sure you have finished the following tasks before opening the PR.

  • Please read Contributing to Quantum Toolbox in Julia.
  • Any code changes were done in a way that does not break public API.
  • Appropriate tests were added and tested locally by running: make test.
  • Any code changes should be julia formatted by running: make format.
  • All documents (in docs/ folder) related to code changes were updated and able to build locally by running: make docs.
  • (If necessary) the CHANGELOG.md should be updated (regarding to the code changes) and built by running: make changelog.

Request for a review after you have completed all the tasks. If you have not finished them all, you can also open a Draft Pull Request to let the others know this on-going work.

Description

Add functionalities for ENR space, as QuTiP.

  • Define EnrSpace and enr_state_dictionaries
  • Define basic functions
    • enr_identity
    • enr_fock
    • enr_destroy
    • enr_thermal_dm
  • Support kron
  • make sure ptrace, permute, and partial_transpose doesn't support EnrSpace

@TendonFFF TendonFFF marked this pull request as draft June 27, 2025 14:21
@codecov
Copy link

codecov bot commented Jun 27, 2025

Codecov Report

Attention: Patch coverage is 92.23301% with 8 lines in your changes missing coverage. Please review.

Project coverage is 94.05%. Comparing base (0066cdb) to head (14eb47e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/qobj/energy_restricted.jl 92.85% 6 Missing ⚠️
src/qobj/dimensions.jl 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #500      +/-   ##
==========================================
- Coverage   94.12%   94.05%   -0.08%     
==========================================
  Files          50       51       +1     
  Lines        3421     3514      +93     
==========================================
+ Hits         3220     3305      +85     
- Misses        201      209       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ytdHuang ytdHuang marked this pull request as ready for review July 2, 2025 10:18
@ytdHuang ytdHuang requested a review from albertomercurio July 2, 2025 10:23
@ytdHuang
Copy link
Member

ytdHuang commented Jul 2, 2025

I will fix the error later

@ytdHuang ytdHuang marked this pull request as draft July 5, 2025 14:12
@ytdHuang ytdHuang marked this pull request as ready for review July 5, 2025 14:47
@albertomercurio albertomercurio merged commit a2ade17 into main Jul 7, 2025
23 of 26 checks passed
@ytdHuang ytdHuang deleted the dev/enr branch July 7, 2025 10:05
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.

4 participants