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

Add tests for the Deutsch-Jozsa algorithm #80

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

Conversation

Danii06
Copy link
Collaborator

@Danii06 Danii06 commented Oct 12, 2024

Closes #59

Adds a simple test to the Deutsch-Jozsa implementation to verify that it can distinguish between a constant function and a balanced function for the current oracles, and a test for the XOR oracle to verify it returns the correct values.

The XOR oracle was also rewritten to use reduce instead of recursion.

@Danii06 Danii06 requested a review from nunezco2 October 12, 2024 23:37
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.

Write tests for DJ
1 participant