-
Notifications
You must be signed in to change notification settings - Fork 848
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
Optimize Quantum Discrete Logarithm Algorithm Implementation in the "discrete_log.ipynb" file #42
Comments
Thanks @umer066 for the issue! Regarding the |
Hi @orsa-classiq Thanks for the response. Ok. I will check the resulting Keep the variable names After making these adjustments, we'll thoroughly review the code to ensure it aligns with the algorithm's description, maintains clarity, and seamlessly integrates with the library. Extensive testing will be conducted to identify any potential issues or unexpected behavior and ensure the code's reliability. These changes will improve the code's maintainability and readability while preserving its functionality within the qmod environment. Your approval to proceed with these adjustments would be greatly appreciated. Looking forward to your feedback! Best regards, |
Nice, you are welcome to proceed |
Description
Optimize the implementation of the code. The suggested changes includes better variable naming, type annotations and code structure improvements
** Type of change**
Please delete options that are not relevant.
We can import all at once instead of importing multiple times
from math import ceil, log
We can also use ceiling and log from math
We can maintain consistency by using variable names like these
We can improve the functions for better code readability like this.
The text was updated successfully, but these errors were encountered: