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

Fix 1675 #1684

Merged
merged 6 commits into from Jan 8, 2024
Merged

Fix 1675 #1684

merged 6 commits into from Jan 8, 2024

Conversation

inailuig
Copy link
Collaborator

@inailuig inailuig commented Jan 8, 2024

fixes #1675 (comment)

The extra two implementations are not currently tested (I did locally).

I also put some more casts to enforce the dtype of the configurations (until one day we can set it consistently in e.g. hilbert)

(once we have consistent dtypes we can replace this with warnings and 
have the user set it reasonably)
Copy link
Member

@PhilipVinc PhilipVinc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only this minor thing. I'm unsure if it makes sense,
Otherwise thank you, looks good.
(Eventually it would be nice to get some comments in this code... but ok)

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

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

Comparison is base (9fea033) 82.42% compared to head (041a759) 82.56%.

Files Patch % Lines
...experimental/operator/_fermion_operator_2nd_jax.py 56.25% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1684      +/-   ##
==========================================
+ Coverage   82.42%   82.56%   +0.14%     
==========================================
  Files         293      293              
  Lines       18049    18049              
  Branches     3482     3482              
==========================================
+ Hits        14876    14902      +26     
+ Misses       2497     2472      -25     
+ Partials      676      675       -1     

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

@inailuig inailuig merged commit f282aab into netket:master Jan 8, 2024
10 of 11 checks passed
jwnys pushed a commit to jwnys/netket that referenced this pull request Jan 8, 2024
Make the "mask" implementation of FermiOperator2ndJax work with number of batch axes different from 1.
Fixes netket#1675 (comment)).

Also do some more casts to enforce the dtype of the configurations in the different implementations of the aforementioned operator, until one day we can set it consistently in e.g. hilbert.
jwnys pushed a commit to jwnys/netket that referenced this pull request Jan 9, 2024
Make the "mask" implementation of FermiOperator2ndJax work with number of batch axes different from 1.
Fixes netket#1675 (comment)).

Also do some more casts to enforce the dtype of the configurations in the different implementations of the aforementioned operator, until one day we can set it consistently in e.g. hilbert.
@inailuig inailuig deleted the fix_1675 branch March 6, 2024 06:17
@inailuig inailuig restored the fix_1675 branch March 6, 2024 06:17
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.

None yet

2 participants