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

Check for the number of target qubits #180

Merged

Conversation

alexfleury-sb
Copy link
Collaborator

Naive attempt at fixing #149. It checks the number of target qubits for some gates. It does not prevent multicontrolled-qubit gates nor custom gates.

Copy link
Collaborator

@ValentinS4t1qbit ValentinS4t1qbit left a comment

Choose a reason for hiding this comment

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

Thank you for addressing this long-lasting bug, which gives us the opportunity to show on Github that we follow up on those !

tangelo/linq/gate.py Outdated Show resolved Hide resolved
tangelo/linq/gate.py Outdated Show resolved Hide resolved
tangelo/linq/tests/test_gates.py Outdated Show resolved Hide resolved
@ValentinS4t1qbit ValentinS4t1qbit merged commit b4031b1 into sandbox-quantum:develop Aug 1, 2022
@alexfleury-sb alexfleury-sb deleted the n_qubits_check branch August 12, 2022 20:03
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.

3 participants