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

Final plumbing of multi-qubit control gates. #458

Merged
merged 12 commits into from
Jan 27, 2021
Merged

Conversation

MichaelBroughton
Copy link
Collaborator

@MichaelBroughton MichaelBroughton commented Jan 12, 2021

W.I.P PR for finishing off multi-qubit control gate support. Currently blocked on quantumlib/qsim#263 for our unitary calculation op. Going to shelve this until we can upgrade the version of qsim we rely on if/when multi qubit gates are supported in the unitary calculator. Fixes #422

@MichaelBroughton MichaelBroughton marked this pull request as draft January 12, 2021 17:09
@MichaelBroughton MichaelBroughton changed the title W.I.P Final plumbing of multi-qubit gates. W.I.P Final plumbing of multi-qubit control gates. Jan 22, 2021
@MichaelBroughton MichaelBroughton marked this pull request as ready for review January 26, 2021 22:01
@MichaelBroughton
Copy link
Collaborator Author

MichaelBroughton commented Jan 26, 2021

Bit of a bumpy ride to get things working. Plz make sure and do a thorough review.

@MichaelBroughton MichaelBroughton changed the title W.I.P Final plumbing of multi-qubit control gates. Final plumbing of multi-qubit control gates. Jan 27, 2021
jaeyoo
jaeyoo previously approved these changes Jan 27, 2021
Copy link
Member

@jaeyoo jaeyoo left a comment

Choose a reason for hiding this comment

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

LGTM with minor change:

======================================================================
FAIL: test_correctness_without_symbols2 (n_qubits=5, batch_size=10, inner_dim_size=5) (__main__.InnerProductTest)
InnerProductTest.test_correctness_without_symbols2 (n_qubits=5, batch_size=10, inner_dim_size=5)
test_correctness_without_symbols(n_qubits=5, batch_size=10, inner_dim_size=5)
----------------------------------------------------------------------

please increase atol to 1e-5, for example.

Copy link
Member

@jaeyoo jaeyoo left a comment

Choose a reason for hiding this comment

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

LGTM

@jaeyoo jaeyoo merged commit 64b1efa into master Jan 27, 2021
@jaeyoo jaeyoo deleted the full_multi_qubit branch January 27, 2021 07:44
jaeyoo pushed a commit to jaeyoo/quantum that referenced this pull request Mar 30, 2023
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.

Add support for multi qubit controlled gates
2 participants