Skip to content

Conversation

Drewniok
Copy link
Collaborator

Description

Since a significant amount of the experiments use the SiQAD SiDB gate library (https://ieeexplore.ieee.org/document/8963859), I propose to add it. This PR includes it with an additional tag for the canvas SiDBs (cell_type::LOGIC).

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.

@Drewniok Drewniok added the enhancement New feature or request label Oct 31, 2024
@Drewniok Drewniok self-assigned this Oct 31, 2024
@Drewniok Drewniok changed the title 📥 Add SiQAD SiDB gate library 📥 Added SiQAD SiDB gate library Oct 31, 2024
@marcelwa
Copy link
Collaborator

Many thanks! I'm just a bit confused by the folder structure. If I were looking for the AND gate, I would expect the path to be sidb_gate_libraries/siqad/and.sqd. Could you explain your design decision?

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.21%. Comparing base (18f0c4c) to head (bd7fa45).
Report is 90 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #555      +/-   ##
==========================================
- Coverage   98.21%   98.21%   -0.01%     
==========================================
  Files         228      228              
  Lines       35730    35730              
  Branches     1692     1691       -1     
==========================================
- Hits        35094    35093       -1     
- Misses        636      637       +1     

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18f0c4c...bd7fa45. Read the comment docs.

@Drewniok
Copy link
Collaborator Author

Many thanks! I'm just a bit confused by the folder structure. If I were looking for the AND gate, I would expect the path to be sidb_gate_libraries/siqad/and.sqd. Could you explain your design decision?

Hmm, we could live without the subfolders. This structure is still from the time when we did not have the bdl_input_iterator. So up to 5 files were stored for each gate.
However, at the moment it is quite convenient for the experiment because the name of the gate is always given by the folder and the file itself can be named arbitrarily.

@marcelwa
Copy link
Collaborator

marcelwa commented Oct 31, 2024

Many thanks! I'm just a bit confused by the folder structure. If I were looking for the AND gate, I would expect the path to be sidb_gate_libraries/siqad/and.sqd. Could you explain your design decision?

Hmm, we could live without the subfolders. This structure is still from the time when we did not have the bdl_input_iterator. So up to 5 files were stored for each gate. However, at the moment it is quite convenient for the experiment because the name of the gate is always given by the folder and the file itself can be named arbitrarily.

I understand where this is coming from. Regarding the convenience, you could just as easily argue the opposite: The name of the gate is given by the file name and you could put whatever files in the folder and they would automatically work with the experiments if they simply iterate over all SQD files in the sidb_gate_libraries/siqad/ directory.

@Drewniok
Copy link
Collaborator Author

Many thanks! I'm just a bit confused by the folder structure. If I were looking for the AND gate, I would expect the path to be sidb_gate_libraries/siqad/and.sqd. Could you explain your design decision?

Hmm, we could live without the subfolders. This structure is still from the time when we did not have the bdl_input_iterator. So up to 5 files were stored for each gate. However, at the moment it is quite convenient for the experiment because the name of the gate is always given by the folder and the file itself can be named arbitrarily.

I understand where this is coming from. Regarding the convenience, you could just as easily argue the opposite: The name of the gate is given by the file name and you could put whatever files in the folder and they would automatically work with the experiments if they simply iterate over all SQD files in the sidb_gate_libraries/siqad/ directory.

Yes, I know, it is true 😅. I will change it for the Bestagon and SiQAD gates, right?

@Drewniok Drewniok requested a review from marcelwa October 31, 2024 13:19
@marcelwa
Copy link
Collaborator

Many thanks! I'm just a bit confused by the folder structure. If I were looking for the AND gate, I would expect the path to be sidb_gate_libraries/siqad/and.sqd. Could you explain your design decision?

Hmm, we could live without the subfolders. This structure is still from the time when we did not have the bdl_input_iterator. So up to 5 files were stored for each gate. However, at the moment it is quite convenient for the experiment because the name of the gate is always given by the folder and the file itself can be named arbitrarily.

I understand where this is coming from. Regarding the convenience, you could just as easily argue the opposite: The name of the gate is given by the file name and you could put whatever files in the folder and they would automatically work with the experiments if they simply iterate over all SQD files in the sidb_gate_libraries/siqad/ directory.

Yes, I know, it is true 😅. I will change it for the Bestagon and SiQAD gates, right?

Many thanks 🙏

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@marcelwa marcelwa merged commit 3ee8188 into cda-tum:main Nov 1, 2024
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants