Uses of Interface
com.quantum4j.transpile.TranspilerPass
Packages that use TranspilerPass
Package
Description
===============================================================
Quantum4J Transpiler Architecture – IMPORTANT RULES
===============================================================
ALL TranspilerPass implementations MUST follow these rules:
1.
-
Uses of TranspilerPass in com.quantum4j.transpile
Methods in com.quantum4j.transpile that return types with arguments of type TranspilerPassModifier and TypeMethodDescriptionPassManager.getPasses()Get the configured passes in insertion order.Methods in com.quantum4j.transpile with parameters of type TranspilerPassModifier and TypeMethodDescriptionPassManager.addPass(TranspilerPass pass) Append a transpiler pass to the pipeline. -
Uses of TranspilerPass in com.quantum4j.transpile.passes
Classes in com.quantum4j.transpile.passes that implement TranspilerPassModifier and TypeClassDescriptionfinal classDecomposes U1/U2/U3 gates into the RX/RY/RZ basis (and preserves measurements).final classRemoves adjacent pairs of H gates on the same qubit (H followed by H is identity).final classA transpiler pass that cancels consecutive pairs of X gates on the same qubit.final classRemoves adjacent pairs of Z gates on the same qubit.final classPeephole optimization: CX(a,b); CX(a,b) ==> (removed) Used to reduce circuit depth and simplify transpilation before routing.final classTranspiler 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 fromStandardGates.CNOTGate.final classLocal commutation optimizer.final classProduces the inverse (adjoint) of the unitary prefix of a circuit.final classfinal classFuses consecutive same-axis rotations (RZ, RX, RY) on the same qubit by summing angles.final classDecomposes SWAP gates into the canonical 3-CX sequence:final classDecomposes U1/U2/U3 gates into native rotations: