Qiskit Patterns (Map–Optimize–Execute–Post-process)

qc/workflow

The standard 4-step workflow for running a quantum computation:

  1. Map — design the abstract circuit for the problem (gates, qubits, observable)
  2. Optimize (Transpile) — adapt the circuit to the target backend’s native gates & connectivity — see Transpilation
  3. Execute — run using a primitive (Sampler for bitstring counts, Estimator for expectation values of an observable)
  4. Post-process — analyze/interpret the results (e.g. compare fidelity, plot distributions)

Self-Check

  • Could you name all four steps of Qiskit Patterns in order, and explain what each one does?
  • Why does “Optimize” (transpile) have to happen between “Map” and “Execute,” not before or after?
  • Which primitive would you use for “Execute” if you wanted expectation values instead of bitstring counts?