Skip to main content

DICE SHCI solver integration for qcsc-prefect

Project description

QCSC Prefect DICE

Shared Python-side DICE SHCI solver integration for qcsc-prefect workflows.

This package provides:

  • DiceSHCISolverJob as a Prefect block
  • DICE input/output utilities
  • Block registration and block creation helpers for Miyabi and Fugaku
  • Scheduler script integration and runtime executable preflight checks

It is intended to be reused by multiple algorithms such as SQD and SKQD. Installing this package does not build, download, vendor, or install the external DICE/SBD executable. The executable must be compiled separately for each target HPC environment.

Build instructions are site-specific because compilers, MPI stacks, BLAS/LAPACK libraries, GPU support, filesystem layout, and scheduler environments differ across HPC systems.

Source-tree native build helper assets live under:

packages/qcsc-prefect-dice/native

They are not part of the Python package install. See native/README.md for development notes and how to point dice_executable at the separately built binary.

Usage Example

from qcsc_prefect_dice import DiceSHCISolverJob, create_dice_blocks

block_names = create_dice_blocks(
    hpc_target="miyabi",
    project="gz00",
    queue="regular-c",
    root_dir="/work/gz00/<user>/dice_jobs",
    dice_executable="/work/gz00/<user>/dice/bin/Dice",
    solver_block_name="sqd-dice-solver",
)

solver = await DiceSHCISolverJob.load(block_names["solver_block_name"])
result = await solver.run(
    ci_strings=ci_strings,
    one_body_tensor=h1,
    two_body_tensor=h2,
    norb=norb,
    nelec=nelec,
)

SQD and SKQD can use the same shared package and only vary block names or their algorithm-specific setup wrappers.

The configured executable path is stored in the HPC profile executable map under the command block key dice_solver. Generated job scripts validate that path on the HPC node before launching DICE and fail early with a clear message if it is missing or not executable.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qcsc_prefect_dice-0.1.0.post1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qcsc_prefect_dice-0.1.0.post1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file qcsc_prefect_dice-0.1.0.post1.tar.gz.

File metadata

  • Download URL: qcsc_prefect_dice-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qcsc_prefect_dice-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 382752544c87e75d6a4aaeefc66428c78c2e607870daf42f940d66c23b0d16f8
MD5 ac682d46dbaef416457bc9b3e441d9bd
BLAKE2b-256 427bb4ee19aa21d23f120a7266d8a4c5ccf06d46b82b57638fd4eeb6f7866cc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for qcsc_prefect_dice-0.1.0.post1.tar.gz:

Publisher: pypi-publish.yml on qiskit-community/qcsc-prefect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qcsc_prefect_dice-0.1.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for qcsc_prefect_dice-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 64e0603b553bd39e8929a518ad424108075cb87d28d599f4f3641b7882b65928
MD5 2b0fcc50bf4a599736e94a8c8774b25a
BLAKE2b-256 a381ec063569b983285f480df4d4a68d08fb99f2b6b0e26851f74898fe952f13

See more details on using hashes here.

Provenance

The following attestation bundles were made for qcsc_prefect_dice-0.1.0.post1-py3-none-any.whl:

Publisher: pypi-publish.yml on qiskit-community/qcsc-prefect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page