qdk_chemistry.plugins.pyscf.coupled_cluster module
PySCF-based Coupled Cluster calculator implementation for qdk_chemistry.
This module provides integration between QDK/Chemistry and PySCF for performing Coupled Cluster (CC) calculations. It implements a CCSD (Coupled Cluster Singles and Doubles) calculator that can be used within the QDK/Chemistry framework.
The module contains:
PyscfCoupledClusterSettings: Configuration class for CC calculation parametersPyscfCoupledClusterCalculator: Main calculator class that performs CC calculationsRegistration utilities to integrate the calculator with QDK/Chemistry’s plugin system
The calculator handles automatic conversion between QDK/Chemistry Hamiltonian objects and PySCF format, performs the CC calculation, and returns results (energy and wavefunction) in QDK/Chemistry-compatible format.
Upon import, this module automatically registers the PySCF CC calculator with QDK/Chemistry’s CC calculator registry under the name “pyscf_coupled_cluster”.
Examples
>>> from qdk_chemistry.plugins.pyscf.coupled_cluster import PyscfCoupledClusterCalculator
>>> cc_calculator = PyscfCoupledClusterCalculator()
>>> energy, wavefunction = cc_calculator.run(ansatz)
This module requires both QDK/Chemistry and PySCF to be installed.
- class qdk_chemistry.plugins.pyscf.coupled_cluster.PyscfCoupledClusterCalculator[source]
Bases:
DynamicalCorrelationCalculatorPySCF-based Coupled Cluster calculator for quantum chemistry calculations.
This class provides an interface between QDK/Chemistry and PySCF for performing Coupled Cluster calculations on molecular systems. It handles the conversion between QDK/Chemistry Hamiltonian objects and PySCF representations, performs the CC calculation, and returns the results in QDK/Chemistry-compatible format.
The calculator uses CCSD (Coupled Cluster Singles and Doubles) method.
- class qdk_chemistry.plugins.pyscf.coupled_cluster.PyscfCoupledClusterSettings[source]
Bases:
SettingsSettings configuration for the PySCF Coupled Cluster calculator.
This class manages the configuration parameters for the PySCF Coupled Cluster calculator, providing default settings and allowing customization of quantum chemistry calculations.
- frozen
If integer is given, the inner-most orbitals are frozen from CC amplitudes. Given the orbital indices (0-based) in a list, both occupied and virtual orbitals can be frozen in the CC calculation.
Examples
>>> settings = PyscfCoupledClusterSettings() >>> settings.set("max_cycle", 100)