Class U3DecompositionPass

java.lang.Object
com.quantum4j.transpile.passes.U3DecompositionPass
All Implemented Interfaces:
TranspilerPass

public final class U3DecompositionPass extends Object implements TranspilerPass
Decomposes U1/U2/U3 gates into native rotations:
   U3(θ, φ, λ) => RZ(φ) ; RX(π/2) ; RZ(θ) ; RX(-π/2) ; RZ(λ)
   U2(φ, λ)    => U3(π/2, φ, λ)
   U1(λ)       => RZ(λ)
 
  • Constructor Details

    • U3DecompositionPass

      public U3DecompositionPass()
      Create the U3 decomposition pass.
  • Method Details

    • name

      public String name()
      Description copied from interface: TranspilerPass
      Human-readable name of this pass (for logging, debugging, profiling).
      Specified by:
      name in interface TranspilerPass
      Returns:
      pass identifier
    • apply

      public QuantumCircuit apply(QuantumCircuit circuit)
      Description copied from interface: TranspilerPass
      Apply this pass to the given circuit and return a new circuit. Implementations should not mutate the input circuit.
      Specified by:
      apply in interface TranspilerPass
      Parameters:
      circuit - input circuit (not mutated)
      Returns:
      transformed circuit