Transpiler plugin¶
- class qiskit_aqt_provider.transpiler_plugin.AQTTranslationPlugin[source]¶
Bases:
PassManagerStagePlugin
Translation stage plugin for the
qiskit.transpiler
.If the transpilation target is not
UnboundParametersTarget
, register aWrapRxxAngles
pass after the preset pass irrespective of the optimization level.
- class qiskit_aqt_provider.transpiler_plugin.AQTSchedulingPlugin[source]¶
Bases:
PassManagerStagePlugin
Scheduling stage plugin for the
qiskit.transpiler
.If the transpilation target is not
UnboundParametersTarget
, register a single-qubit gates run decomposition and aRewriteRxAsR
pass, irrespective of the optimization level.
- class qiskit_aqt_provider.transpiler_plugin.RewriteRxAsR[source]¶
Bases:
TransformationPass
Rewrite Rx(θ) and R(θ, φ) as R(θ, φ) with θ ∈ [0, π] and φ ∈ [0, 2π].
Since the pass needs to determine if the relevant angles are in range, target circuits must have all these angles bound when applying the pass.
- class qiskit_aqt_provider.transpiler_plugin.WrapRxxAngles[source]¶
Bases:
TransformationPass
Wrap Rxx angles to [0, π/2].