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

✅ Added test for issue #667 #668

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

wlambooy
Copy link
Collaborator

Description

Adds a test to try to catch the failure described in #667 .

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have added a changelog entry.
  • I have created/adjusted the Python bindings for any new or updated functionality.
  • 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.

@wlambooy wlambooy changed the title 🐍 Added test for issue #667 ✅ Added test for issue #667 Feb 13, 2025
@wlambooy wlambooy requested a review from Drewniok February 17, 2025 07:39
Copy link
Collaborator

@Drewniok Drewniok left a 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):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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 = (
Copy link
Collaborator

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?

Copy link
Collaborator

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?

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