qrunch.quantum.algorithms.second_quantization.quantum_selected_configuration_interaction.reference_circuit_providers.creators
Fluent selection of reference circuit families on a parent creator.
Classes
Select one reference family and return to the parent creator. |
- class ReferenceCircuitProvidersSubCreator
Bases:
Generic[T]Select one reference family and return to the parent creator.
- __init__(parent: T, field_name: str) None
Initialize the subcreator.
- Parameters:
parent (T) – Creator receiving the selected providers.
field_name (str) – Parent field in which to store the provider tuple.
- Return type:
None
- configuration_interaction_singles(number_of_references: int | None = None, *, minimum_coefficient: float = 0.0001, state_preparation_options: FixedParticleNumberStatePrepBeamSearchOptions | None = None, seed: int | None = None) T
Select HF plus the lowest CIS references, replacing any previous selection.
- Parameters:
number_of_references (int | None) – Positive reference count including HF; None uses the requested state count.
minimum_coefficient (float) – Compression threshold for CIS amplitudes.
state_preparation_options (FixedParticleNumberStatePrepBeamSearchOptions | None) – Beam-search preparation controls; None uses defaults.
seed (int | None) – Seed for iterative CIS eigensolver probes.
- Return type:
T
- custom(providers: Sequence[ReferenceCircuitProvider]) T
Select custom providers, replacing any previous selection.
- Parameters:
providers (Sequence[ReferenceCircuitProvider]) – Nonempty sequence of providers configured before the molecular problem is known.
- Return type:
T
- dipole(axis: Literal['x', 'y', 'z'] | None = None, *, minimum_coefficient: float = 0.0001, state_preparation_options: FixedParticleNumberStatePrepBeamSearchOptions | None = None, zero_threshold: float = 1e-12) T
Select HF plus usable Cartesian dipole references, replacing any previous selection.
- Parameters:
axis (Literal['x', 'y', 'z'] | None) – Single Cartesian direction, or all X/Y/Z directions when None.
minimum_coefficient (float) – Compression threshold for normalized dipole amplitudes.
state_preparation_options (FixedParticleNumberStatePrepBeamSearchOptions | None) – Beam-search preparation controls; None uses defaults.
zero_threshold (float) – Projected norm at or below which a direction is omitted, in atomic units.
- Return type:
T
- hartree_fock() T
Select only the Hartree-Fock reference, replacing any previous selection.
- Return type:
T