uniqc.circuit_builder.originir_ext_spec module¶
OriginIR-ext language specification — the superset of official OriginIR.
OriginIR-ext extends the official OriginIR (accepted by OriginQ cloud) with:
Extended gates: ECR, ISWAP, XX, YY, ZZ, XY, PHASE2Q, UU15, RPhi, RPhi90, RPhi180 (all decomposable to official gates for cloud submission)
Extended features: DEF/ENDDEF blocks, QRAM (Quantum RAM) instructions, error channels for noise simulation
Extended syntax: inline
daggersuffix, inlinecontrolled_by(q[...])clause (as an alternative to DAGGER/CONTROL blocks)
OriginIR-ext is the default local programming language in UnifiedQuantum.
When submitting to OriginQ cloud, circuits are automatically converted to
strict official OriginIR via uniqc.compile.decompose_for_originir().
See uniqc.circuit_builder.originir_spec for the official (downstream)
gate set, and uniqc.circuit_builder.originir_ext_spec (this module) for
the full superset.