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

Move and expand test for logical equivalence #92

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

Misty-W
Copy link
Collaborator

@Misty-W Misty-W commented Nov 19, 2024

Moved equivalence test from test_circuit_equivalence.py to test_compile.py.

Deleted test_circuit_equivalence.py as its only test function was moved.

Testing random Clifford and QCNN circuits w/ parametrized numbers of qubits and random seeds.

Test moved to test_compile.py
Test moved to test_compile.py
@Misty-W Misty-W linked an issue Nov 19, 2024 that may be closed by this pull request
@jordandsullivan jordandsullivan self-requested a review November 25, 2024 18:10
Copy link
Collaborator

@jordandsullivan jordandsullivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we need quite so many tests personally with the varied small numbers of qubits, as it does extend the runtime to about a minute on my device. But it's not blocking for me. Either way, good to have these parameterized to make it easier to add other circuits later if desired.

Copy link
Member

@natestemen natestemen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-wise it looks good to me! Agree that maybe we only need 3/4 values for the num_qubits parametrization if it's slowing things down substantially.

Remove unnecessary qubit parameterizations in `test_compiled_circuits_equivalent` and `test_compilation_retains_gateset`
@Misty-W Misty-W merged commit 10a6968 into main Nov 26, 2024
@Misty-W Misty-W deleted the 91-expand-logical-equivalence-test branch November 26, 2024 02:38
@Misty-W
Copy link
Collaborator Author

Misty-W commented Nov 26, 2024

thanks Jordan and Nate! I pared them down slightly before merging.

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.

Expand logical equivalence test
3 participants