Package com.quantum4j.transpile.passes


package com.quantum4j.transpile.passes
  • Classes
    Class
    Description
    Decomposes U1/U2/U3 gates into the RX/RY/RZ basis (and preserves measurements).
    Removes adjacent pairs of H gates on the same qubit (H followed by H is identity).
    A transpiler pass that cancels consecutive pairs of X gates on the same qubit.
    Removes adjacent pairs of Z gates on the same qubit.
    Peephole optimization: CX(a,b); CX(a,b) ==> (removed) Used to reduce circuit depth and simplify transpilation before routing.
    Transpiler pass that decomposes CX/CNOT into: H(target) + CZ(control, target) + H(target) This pass is intentionally robust: it detects CNOT even if the gate did not originate from StandardGates.CNOTGate.
    Local commutation optimizer.
    Produces the inverse (adjoint) of the unitary prefix of a circuit.
     
    Fuses consecutive same-axis rotations (RZ, RX, RY) on the same qubit by summing angles.
    Decomposes SWAP gates into the canonical 3-CX sequence:
    Decomposes U1/U2/U3 gates into native rotations: