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

Serialize multiqubit #447

Merged
merged 5 commits into from
Dec 16, 2020
Merged

Serialize multiqubit #447

merged 5 commits into from
Dec 16, 2020

Conversation

MichaelBroughton
Copy link
Collaborator

@MichaelBroughton MichaelBroughton commented Dec 9, 2020

Addresses step 2 in #422 .

The final step is to link these gates into the new qsim simulator. Right now most of the C++ code still ignore control_qubits and control_values proto fields.

With the help of the DelayedAssignmentGate this change adds the control_qubits and control_values field to every gates args field. Updates all previous tests to use controlled operations as well and added a test for invalid control_qubits. Plz review closely, I'm always a little concerned when touching code in serializer.py since it's used so widely.

@zaqqwerty
Copy link
Contributor

I'll have some time to look at this in detail tomorrow

Copy link
Contributor

@zaqqwerty zaqqwerty left a comment

Choose a reason for hiding this comment

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

Just a couple clarifications

Copy link
Contributor

@zaqqwerty zaqqwerty left a comment

Choose a reason for hiding this comment

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

LGTM

@MichaelBroughton MichaelBroughton merged commit ef22294 into master Dec 16, 2020
@MichaelBroughton MichaelBroughton deleted the serialize_multiqubit branch December 16, 2020 22: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.

2 participants