Skip to content

Feat/delay instruction#20

Merged
splch merged 2 commits intomainfrom
feat/delay-instruction
Mar 14, 2026
Merged

Feat/delay instruction#20
splch merged 2 commits intomainfrom
feat/delay-instruction

Conversation

@splch
Copy link
Copy Markdown
Owner

@splch splch commented Mar 14, 2026

No description provided.

splch added 2 commits March 14, 2026 14:15
Add a general-purpose Delay pseudo-gate that idles a qubit for a
specified duration, closing the last gap in Circuit Features vs Qiskit.

Gate: Delay(duration, unit) with Delayable interface for typed access
to duration/unit/seconds. Supported units: ns, us, ms, s, dt.

Builder: fluent Delay(qubit, duration, unit) method.

Simulators: statevector skips delays (ideal no-op); density matrix
applies noise channel lookup for decoherence during idle periods.

Serialization: QASM 3.0 round-trip (delay[100ns] q[0]), Quil (skip),
all hardware backends handle gracefully.

IonQ integration: Delay automatically converts to native NOP gate
with duration in microseconds, works in both QIS and native gatesets.

Transpiler: delays preserved through decomposition/validation,
new RemoveDelays pass mirrors RemoveBarriers.
marshalGate now returns (gate, ok, err) — ok=false means the gate
should be dropped (delay in QIS mode). Native mode converts delay
to NOP with microsecond duration. detectGateset skips delays so
they never influence gateset detection.
@splch splch merged commit 0e2112e into main Mar 14, 2026
6 checks passed
@splch splch deleted the feat/delay-instruction branch March 14, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant