Interface TranspilerPass

All Known Implementing Classes:
BasisGateDecompositionPass, CancelDoubleHPass, CancelDoubleXPass, CancelDoubleZPass, CXCancellationPass, CXToCZDecompositionPass, GateCommutationPass, GateInversionPass, RemoveRedundantMeasurementPass, RotationFusionPass, SwapDecompositionPass, U3DecompositionPass

public interface TranspilerPass
A transpiler pass that transforms a quantum circuit.

Transpiler passes can perform optimizations, gate decompositions, qubit mapping, and other transformations on quantum circuits to adapt them for specific hardware or improve performance. Each pass takes an input QuantumCircuit and produces a new transformed QuantumCircuit.

  • Method Summary

    Modifier and Type
    Method
    Description
    Apply this pass to the given circuit and return a new circuit.
    Human-readable name of this pass (for logging, debugging, profiling).
  • Method Details

    • name

      String name()
      Human-readable name of this pass (for logging, debugging, profiling).
      Returns:
      pass identifier
    • apply

      Apply this pass to the given circuit and return a new circuit. Implementations should not mutate the input circuit.
      Parameters:
      circuit - input circuit (not mutated)
      Returns:
      transformed circuit