Package com.quantum4j.transpile.passes
Class U3DecompositionPass
java.lang.Object
com.quantum4j.transpile.passes.U3DecompositionPass
- All Implemented Interfaces:
TranspilerPass
Decomposes U1/U2/U3 gates into native rotations:
U3(θ, φ, λ) => RZ(φ) ; RX(π/2) ; RZ(θ) ; RX(-π/2) ; RZ(λ) U2(φ, λ) => U3(π/2, φ, λ) U1(λ) => RZ(λ)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(QuantumCircuit circuit) Apply this pass to the given circuit and return a new circuit.name()Human-readable name of this pass (for logging, debugging, profiling).
-
Constructor Details
-
U3DecompositionPass
public U3DecompositionPass()Create the U3 decomposition pass.
-
-
Method Details
-
name
Description copied from interface:TranspilerPassHuman-readable name of this pass (for logging, debugging, profiling).- Specified by:
namein interfaceTranspilerPass- Returns:
- pass identifier
-
apply
Description copied from interface:TranspilerPassApply this pass to the given circuit and return a new circuit. Implementations should not mutate the input circuit.- Specified by:
applyin interfaceTranspilerPass- Parameters:
circuit- input circuit (not mutated)- Returns:
- transformed circuit
-