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

Arbitrary gate set conversion transpiler #341

Merged
merged 39 commits into from
Jun 19, 2024
Merged

Arbitrary gate set conversion transpiler #341

merged 39 commits into from
Jun 19, 2024

Conversation

lqtmirage
Copy link
Contributor

@lqtmirage lqtmirage commented Jun 19, 2024

Overview

  • Add a CircuitTranspiler to convert the gate set of the given circuit to the arbitrary gate set specified by the user.
  • Fix redundant rotation angle in several gate kind decomposers.

Transpile path description

  • Conversion to an arbitrary gate set is achieved by a combination of several components below.
  1. Decompose non target "complex" gates into Clifford gates and 1 qubit rotation gates.
  2. Convert between 2 qubit Clifford gates.
  3. Convert between 1 qubit Clifford gates.
  4. Convert non target 1 qubit Clifford gates into 1 qubit rotation gates.
  5. Convert between 1 qubit rotation gates.

Note

  • "complex" gates include Pauli, PauliRotation, UnitaryMatrix, TOFFOLI, U1, U2 ,and U3 gates.
  • During the course of the transformation, minimal optimization passes are applied, such as converting rotational gates to named gates, fusing rotation gates and removing Identity gates.
  • Some conversion paths use a best-effort approach and may not achieve the desired conversion. It is verified after the conversion that the circuit has been converted to the desired gate set.

Copy link

@github-actions github-actions bot temporarily deployed to pull request June 19, 2024 04:12 Inactive
@kwkbtr kwkbtr merged commit 3580b1a into main Jun 19, 2024
8 checks passed
@kwkbtr kwkbtr deleted the arb-gateset-decomp branch June 19, 2024 06:32
@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2024
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