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

Save output state for weak simulation and physics simulation #30

Merged

Conversation

thilomueller
Copy link
Contributor

@thilomueller thilomueller commented Mar 16, 2025

Description

This pull request adds an option get_state to the classes WeakSimParams and PhysicsSimParams which, if set to True, saves the resulting statevector in the attribute output_state. The implemented functionality is similar to StrongSimParams. Also, the docstring is updated and test cases are added to ensure the correct statevector is calculated and that this option is only available if a noise-free simulation is performed.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

Copy link

codecov bot commented Mar 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.1%. Comparing base (eb1fa83) to head (6a822e4).
Report is 11 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main     #30   +/-   ##
=====================================
  Coverage   96.1%   96.1%           
=====================================
  Files         20      20           
  Lines       1772    1784   +12     
=====================================
+ Hits        1703    1716   +13     
+ Misses        69      68    -1     
Flag Coverage Δ
python 96.1% <100.0%> (+0.1%) ⬆️
Files with missing lines Coverage Δ
src/mqt/yaqs/circuits/circuit_tjm.py 97.2% <100.0%> (+<0.1%) ⬆️
...yaqs/core/data_structures/simulation_parameters.py 97.4% <100.0%> (+0.1%) ⬆️
src/mqt/yaqs/physics/physics_tjm.py 97.6% <100.0%> (+0.1%) ⬆️
src/mqt/yaqs/simulator.py 100.0% <100.0%> (+1.0%) ⬆️
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aaronleesander aaronleesander merged commit aa7504a into cda-tum:main Mar 19, 2025
19 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