Skip to content

Conversation

@albertomercurio
Copy link
Member

@albertomercurio albertomercurio commented Jan 19, 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 QuantumToolbox.jl.
  • 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

With this PR, The definition of QuantumObject and QuantumObjectEvolution is replaced from

QuantumObject{DataType,ObjType,DimsType}

to

QuantumObject{ObjType,DimsType,Datatype{

This simplifies the code structure, especially the various method definitions.

I will make a separate PR for changing the docs.

@albertomercurio albertomercurio marked this pull request as ready for review January 19, 2025 22:22
@codecov
Copy link

codecov bot commented Jan 19, 2025

Codecov Report

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

Project coverage is 93.18%. Comparing base (88bf11b) to head (5c7445f).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/qobj/quantum_object.jl 73.68% 5 Missing ⚠️
src/qobj/arithmetic_and_attributes.jl 94.59% 2 Missing ⚠️
src/qobj/superoperators.jl 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #371      +/-   ##
==========================================
+ Coverage   93.16%   93.18%   +0.01%     
==========================================
  Files          43       43              
  Lines        2781     2788       +7     
==========================================
+ Hits         2591     2598       +7     
  Misses        190      190              

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

@ytdHuang ytdHuang merged commit b69f2b2 into qutip:main Jan 20, 2025
16 of 17 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