-
Notifications
You must be signed in to change notification settings - Fork 1
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
(resolves #83) Probability in tools needs parameter type #87
Conversation
Problem: - Probability function needs Union[quantum_circuit, ndarray] type for quantum_state - quantum_state rename from quantumstate Issues: - Importing quantum_circuit causes circular dependency - quantum_circuit import base_core imports from tools qubit - measure which is in tools imports probability which imports quantum_circuit Solution: - 1. Rename qunatumstate to quantum_state - 2. Add Union type from typing - 3. Remove qubit from tools and put into separate folder to separate imports this solve the dependency issue.
Problem: - Probability function needs Union[quantum_circuit, ndarray] type for quantum_state - quantum_state rename from quantumstate Issues: - Importing quantum_circuit causes circular dependency - quantum_circuit import base_core imports from tools qubit - measure which is in tools imports probability which imports quantum_circuit Solution: - 1. Rename qunatumstate to quantum_state - 2. Add Union type from typing - 3. Remove qubit from tools and put into separate folder to separate imports this solve the dependency issue.
…nto refactor/issue-83
Problem - Project runs black formatter - qubit needs to be included in root import Solution - run `black qcpy/` - add `from ./qubit import *`
Hi @fabie37, thank you for checking these issues out! Looks great so far, would it possible to change the imports with an asterisk to an explicit import? This has been needed to be done and would be a big help thank you! |
Works with me! Regardless, looks great. |
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.
LGTM! Thanks :)
Awesome, glad I could help! |
Pull Request
Requesting to pull changes to resolve issue #83
Description
Fixes issue presented in #83
Please include a summary of the changes and the motivation behind them. If applicable, link to any related issues.
Type of Change
Please check the type of change your PR introduces:
Checklist
black
formatter on the codebase. (CI/CD will fail if neglected)Related Issues
Screenshots (if applicable)
NA
Additional Notes
Problem:
Issues:
Solution: