Welcome to qiskit-waveform-sim’s documentation!¶
qiskit-waveform-sim is a control-waveform synthesizer and pulse-schedule viewer for Qiskit 2.x. It turns scheduled Qiskit 2.x circuits into sample-level I/Q control waveforms with Virtual-Z frame tracking, and draws them as an interactive pulse sheet. It does not simulate qubit dynamics.
It bridges the post-Pulse waveform gap created by Qiskit 2.0-2.5’s architectural overhaul, providing:
Lazy Windowed Evaluation: \(O(W)\) memory for snippet extraction, independent of total circuit depth
Virtual-Z Frame Tracking: Per-qubit phase accumulation propagated to drive and cross-resonance channels
Analytical Envelope Synthesis: DRAG (with leakage suppression), GaussianSquare (flat-top with pedestal correction)
Fractional Gate Support: Amplitude scaling for \(R_X(\theta)\), \(R_{ZZ}(\theta)\) (angles wrapped to \([-\pi, \pi]\))
BoxOp & Annotation Native: Custom
PulseEnvelopeAnnotationwith OpenQASM 3 & QPY serialization, applied bycompile()when you passstart_times=[...](see the annotations tutorial)Interactive Visualization: Plotly-based Pulse Sheet + synchronized I/Q Oscilloscope
Hardware Impairments: an optional
HardwareProfileadds channel skew, IQ imbalance, DC offset, DAC resolution and bandwidth to the waveforms, as waveform impairments and not a fidelity prediction (see the Hardware Impairments API page)get_snippet()windowed API (inspired by LabOne Q’s OutputSimulator)
Note
Analytical Envelope Philosophy: qiskit-waveform-sim is designed for offline, deterministic control-waveform synthesis. Rather than querying cloud-based calibration databases over the network, it synthesizes standardized, idealized physical pulse envelopes (such as DRAG with derivative leakage suppression and GaussianSquare with flat-top rise/fall pedestal corrections) derived directly from circuit gate names, parameters, and modern Target instruction durations.
Scope and limitations
It synthesizes the waveforms a controller would play; it does not evolve a qubit Hamiltonian.
Amplitudes are uncalibrated placeholders, a fraction of DAC full scale. Override them with
PulseDefaultsor per-boxPulseEnvelopeAnnotation.Qiskit’s scheduler rejects
BoxOp, so passcompile(qc, start_times=[...])for boxed circuits.Roadmap: an optional QuTiP-based dynamics bridge.
Getting Started
Tutorials
- Tutorial: From Qiskit 2.0 Scheduled Circuit to Frame-Tracked I/Q Waveforms
- Tutorial: Custom Pulse Annotations and OpenQASM 3 Export
- 4. Export to HDF5 (optional, requires h5py)
- Setup: Create a Test Circuit
- 1. Extract Full Waveforms
- 2. Export to LabOne Q Format
- 3. Export to RFSoC / QICK Format
- 4. Export to ARTIQ / Sinara Format
- 5. Export to Generic CSV/HDF5 for AWGs
- 6. Parameterized Pulse Templates for Calibration
- 7. Verify Exported Waveforms
- Summary
API Reference
Additional Resources