How qiskit-community/qcsc-prefect works
QCSC Prefect is a modular Prefect-based toolkit for running workflows portably across local processes and HPC systems. The main execution path is: a workflow selects command, execution, and HPC profile blocks; the executor resolves those settings, prepares a job, and dispatches it to a target runtime, which submits or runs the work. The repository also includes molecular-chemistry and SQD/SKQD/SBD workflows, plus optional native Qiskit and DICE integrations. The graph uses README and SOURCE INDEX evidence; unsampled subsystems are included where documented, without inferring internal calls beyond that evidence.
Main entry points: from_blocks.py Block Executor · tasks.py Qiskit Runtime Tasks · sqd_dice/main.py SQD and SKQD · skqd_dice/main.py SKQD Workflow
Components 24
Profiles and Blocks
- Command Block
packages/qcsc-prefect-blocks/src/qcsc_prefect_blocks/common/blocks.py - Execution Profile Block
packages/qcsc-prefect-blocks/src/qcsc_prefect_blocks/common/blocks.py - HPC Profile Block
packages/qcsc-prefect-blocks/src/qcsc_prefect_blocks/common/blocks.py - Execution Profile Model
packages/qcsc-prefect-core/src/qcsc_prefect_core/models/execution_profile.py
Execution Dispatch
- Block Executor
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Bulk Job Registry
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/bulk/registry.py - Miyabi Script Builder
packages/qcsc-prefect-adapters/src/qcsc_prefect_adapters/miyabi/builder.py - Fugaku Script Builder
packages/qcsc-prefect-adapters/src/qcsc_prefect_adapters/fugaku/builder.py - Local Runtime
packages/qcsc-prefect-adapters/src/qcsc_prefect_adapters/local/runtime.py - Miyabi Runtime
packages/qcsc-prefect-adapters/src/qcsc_prefect_adapters/miyabi/runtime.py - Fugaku Runtime
packages/qcsc-prefect-adapters/src/qcsc_prefect_adapters/fugaku/runtime.py - Slurm Runtime
packages/qcsc-prefect-adapters/src/qcsc_prefect_adapters/slurm/runtime.py
Scientific Workflows
- Molecular Properties
algorithms/qcsc_workflow_utility/src/qcsc_workflow_utility/chem.py - SQD and SKQD
algorithms/sqd/sqd_dice/main.py - SKQD Workflow
algorithms/skqd/skqd_dice/main.py - SBD Workflow
algorithms/sbd/sbd/main.py
Solver Integrations
- DICE Solver Job
packages/qcsc-prefect-dice/src/qcsc_prefect_dice/solver_job.py - DICE Input Output
packages/qcsc-prefect-dice/src/qcsc_prefect_dice/io_utils.py - Qiskit Runtime Tasks
packages/qcsc-prefect-qiskit/src/qcsc_prefect/integrations/qiskit/tasks.py - Qiskit Wrappers
packages/qcsc-prefect-qiskit/src/qcsc_prefect/integrations/qiskit/wrappers.py - Qiskit Cache and Artifacts
packages/qcsc-prefect-qiskit/src/qcsc_prefect/integrations/qiskit/cache.py
Other components
- Workflow Author
- HPC Scheduler
- Qiskit Runtime Service
Connections 32
- Workflow Author → Command Block: configures
README.md - Workflow Author → Execution Profile Block: configures
README.md - Workflow Author → HPC Profile Block: selects target
README.md - Command Block → Block Executor: resolves command
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Execution Profile Block → Block Executor: resolves resources
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - HPC Profile Block → Block Executor: routes target
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Execution Profile Block → Execution Profile Model: models settings
- Block Executor → Miyabi Script Builder: builds script
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Block Executor → Fugaku Script Builder: builds script
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Block Executor → Local Runtime: runs locally
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Block Executor → Miyabi Runtime: submits job
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Block Executor → Fugaku Runtime: submits job
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Block Executor → Slurm Runtime: submits job
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Miyabi Runtime → HPC Scheduler: uses PBS
README.md - Fugaku Runtime → HPC Scheduler: uses PJM
packages/qcsc-prefect-adapters/src/qcsc_prefect_adapters/fugaku/runtime.py - Slurm Runtime → HPC Scheduler: uses Slurm
packages/qcsc-prefect-adapters/src/qcsc_prefect_adapters/slurm/runtime.py - Block Executor → Bulk Job Registry: tracks bulk jobs
packages/qcsc-prefect-executor/src/qcsc_prefect_executor/from_blocks.py - Workflow Author → SQD and SKQD: runs workflow
README.md - Workflow Author → SKQD Workflow: runs workflow
README.md - Workflow Author → SBD Workflow: runs workflow
README.md - SQD and SKQD → Molecular Properties: computes properties
algorithms/sqd/sqd_dice/main.py - SKQD Workflow → Molecular Properties: uses chemistry
algorithms/skqd/skqd_dice/main.py - SBD Workflow → Molecular Properties: computes properties
algorithms/sbd/sbd/main.py - SQD and SKQD → DICE Solver Job: runs solver
algorithms/sqd/sqd_dice/main.py - SKQD Workflow → DICE Solver Job: runs solver
algorithms/skqd/skqd_dice/main.py - DICE Solver Job → DICE Input Output: prepares and reads
packages/qcsc-prefect-dice/src/qcsc_prefect_dice/solver_job.py - DICE Solver Job → Block Executor: dispatches job
packages/qcsc-prefect-dice/src/qcsc_prefect_dice/solver_job.py - SQD and SKQD → Qiskit Runtime Tasks: samples quantum data
- SKQD Workflow → Qiskit Runtime Tasks: samples quantum data
algorithms/skqd/skqd_dice/main.py - Qiskit Wrappers → Qiskit Runtime Tasks: delegates tasks
packages/qcsc-prefect-qiskit/src/qcsc_prefect/integrations/qiskit/wrappers.py - Qiskit Runtime Tasks → Qiskit Cache and Artifacts: records results
packages/qcsc-prefect-qiskit/src/qcsc_prefect/integrations/qiskit/tasks.py - Qiskit Runtime Tasks → Qiskit Runtime Service: submits or fetches
packages/qcsc-prefect-qiskit/src/qcsc_prefect/integrations/qiskit/tasks.py