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

Write tests for sum operation #76

Open
GabrieleMessina opened this issue Jul 13, 2024 · 0 comments
Open

Write tests for sum operation #76

GabrieleMessina opened this issue Jul 13, 2024 · 0 comments
Labels
code tests Related to Code base Tests enhancement New feature or request

Comments

@GabrieleMessina
Copy link
Owner

GabrieleMessina commented Jul 13, 2024

Here something to check

qubit a = [true]q;
qubit b = [true]q;
int classical = a + 1;
qubit a = [true]q;
qubit b = [true]q;
qubit c = [true]q;
qubit d = a + b + c;
int a = 12;
qubit b = [true]q;
// 'a' should be casted to quint.
//We can measure 'b' and then sum classically to 'a' but that would not be a smart choice because 'c' cannot take advantage from the quantum state of 'b' 
quint c = a + b;
@GabrieleMessina GabrieleMessina added enhancement New feature or request code tests Related to Code base Tests labels Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code tests Related to Code base Tests enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant