Class BasisGateDecompositionPass

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

public final class BasisGateDecompositionPass extends Object implements TranspilerPass
Decomposes U1/U2/U3 gates into the RX/RY/RZ basis (and preserves measurements).
  • Constructor Details

    • BasisGateDecompositionPass

      public BasisGateDecompositionPass()
      Create a basis gate 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