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

feat!(tensorflow): Refactor TensorflowPureFockSimulator #260

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Conversation

Kolarovszki
Copy link
Collaborator

TensorflowPureFockSimulator has been deleted, and the option of specifying a calculator of type BaseCalculator, as a parameter of the simulator has been enabled.

Moreover, a validation has been added to verify the provided calculator, since, e.g., currently TensorflowCalculator does not work with GaussianSimulator In fact, TensorflowCalculator is only supported by PureFockSimulator at this state.

Tests have been rewritten accordingly.

`TensorflowPureFockSimulator` has been deleted, and the option of specifying a
calculator of type `BaseCalculator`, as a parameter of the simulator has been
enabled.

Moreover, a validation has been added to verify the provided calculator, since,
e.g., currently `TensorflowCalculator` does not work with `GaussianSimulator`
In fact, `TensorflowCalculator` is only supported by `PureFockSimulator` at
this state.

Tests have been rewritten accordingly.
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e1233e0) 96.96% compared to head (a16dae2) 96.97%.

Files Patch % Lines
piquasso/_backends/calculator.py 98.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #260   +/-   ##
=======================================
  Coverage   96.96%   96.97%           
=======================================
  Files          60       58    -2     
  Lines        3132     3139    +7     
=======================================
+ Hits         3037     3044    +7     
  Misses         95       95           

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

@Kolarovszki Kolarovszki merged commit 3f77b3e into main Feb 13, 2024
6 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.

1 participant