qrunch.quantum.algorithms.second_quantization.quantum_selected_configuration_interaction.identity_subspace_generator
Subspace state generator yielding the reference state itself, for quantum-selected configuration interaction.
Classes
Identity subspace state generator for quantum-selected configuration interaction. |
- class IdentitySubspaceStateGenerator
Bases:
SubspaceStateGeneratorIdentity subspace state generator for quantum-selected configuration interaction.
This generator simply yields the reference state, whose circuit is assumed to prepare a useful state (e.g. a Hartree-Fock state or a VQE-optimized ansatz).
Note that
QuantumSelectedConfigurationInteractionalready samples the reference circuit for its determinants, so the state yielded here is sampled a second time; this is harmless and keeps the generator the correct way to run plain (reference-only) QSCI, including the VQE-seeded path.- __init__(*args, **kwargs)
- generate() Iterator[SubspaceState]
Yield the single state whose samples define the diagonalization subspace.
- Return type:
Iterator[SubspaceState]