Skip to content

Conversation

@TendonFFF
Copy link
Collaborator

@TendonFFF TendonFFF commented Jul 31, 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

As title.

In this PR, we allow the keyword argument location of render function can be given in the either type:

  • Nothing (default): Create a new Figure and plot the Bloch sphere.
  • GridPosition: Plot the Bloch sphere in the specified location of the plot in the layout.
  • LScene: Update the existing Bloch sphere using new data and settings in b::Bloch without creating new Figure and LScene (efficient for drawing animation).

Co-authored-by: cailixun <[email protected]>
@codecov
Copy link

codecov bot commented Jul 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.09%. Comparing base (13709a1) to head (2eead23).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #520      +/-   ##
==========================================
- Coverage   94.09%   93.09%   -1.01%     
==========================================
  Files          51       51              
  Lines        3542     3549       +7     
==========================================
- Hits         3333     3304      -29     
- Misses        209      245      +36     

☔ 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.

@albertomercurio albertomercurio merged commit 5110d93 into main Aug 8, 2025
19 of 20 checks passed
@ytdHuang ytdHuang deleted the bloch-anime branch August 8, 2025 10:41
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