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

KAK decomposer for 2 qubit UnitaryMatrix gate #93

Merged
merged 21 commits into from
May 23, 2023
Merged

Conversation

lqtmirage
Copy link
Contributor

  • Added a transpiler to decompose two qubit UntiaryMatrix gates into gate sequences containing H, S, RX, RY, RZ, and CNOT gates (called KAK decomposition)
  • Test cases check the parameters after the transformation with UnitaryMatrix gates corresponding to SWAP, CZ, and one deterministic numerical gate
  • In porting, the matrix representation of circuits before and after the conversion is verified numerically in some random cases

References

  • Main functions are ported from the source code written by Morisaki-san
  • The original paper is here and is listed as a reference in the docstring

@github-actions
Copy link

🚀 Deployed on https://deploy-preview-93--quri-parts.netlify.app

@github-actions github-actions bot temporarily deployed to pull request May 23, 2023 02:49 Inactive
@kwkbtr kwkbtr merged commit 1e2c92c into main May 23, 2023
@kwkbtr kwkbtr deleted the two-qubit-unitary branch May 23, 2023 02:55
@github-actions github-actions bot locked and limited conversation to collaborators May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants