-
Notifications
You must be signed in to change notification settings - Fork 25
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
✅ Added test for issue #667 #668
base: main
Are you sure you want to change the base?
Conversation
bindings/mnt/pyfiction/test/algorithms/simulation/sidb/test_quickexact.py
Fixed
Show fixed
Hide fixed
bindings/mnt/pyfiction/test/algorithms/simulation/sidb/test_quickexact.py
Fixed
Show fixed
Hide fixed
bindings/mnt/pyfiction/test/algorithms/simulation/sidb/test_quickexact.py
Fixed
Show fixed
Hide fixed
bindings/mnt/pyfiction/test/algorithms/simulation/sidb/test_quickexact.py
Fixed
Show fixed
Hide fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this test so quickly! I only found a couple of minor things.
@@ -75,6 +81,62 @@ def test_perturber_and_sidb_pair_111(self): | |||
self.assertEqual(groundstate[0].get_charge_state((2, 0)), sidb_charge_state.NEUTRAL) | |||
self.assertEqual(groundstate[0].get_charge_state((3, 0)), sidb_charge_state.NEGATIVE) | |||
|
|||
def test_simulate_all_inputs_of_and_gate(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def test_simulate_all_inputs_of_and_gate(self): | |
def test_simulate_all_inputs_of_AND_gate(self): |
?
physical_parameters.base = 2 | ||
physical_parameters.epsilon_r = 5.6 | ||
physical_parameters.lambda_tf = 5.0 # (nm) | ||
physical_parameters.mu_minus = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you use brackets ()
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add types for input, output, and logic cells?
Should we mention in the file name that we are talking about the Bestagon AND gate?
Description
Adds a test to try to catch the failure described in #667 .
Checklist: