TrotterizationStrategy¶
- class TrotterizationStrategy(*args, **kwargs)[source]¶
Bases:
ProtocolTrotterization strategy protocol.
Attributes Summary
SPO from the most recent sampling pass, or
Nonewhen the strategy does not sample (e.g.ExactTrotterization).True if the strategy retains state across
process_hamiltoniancalls.Methods Summary
process_hamiltonian(hamiltonian)Trotterize the Hamiltonian (SPO in, SPO out).
Attributes Documentation
- last_sampled_spo¶
SPO from the most recent sampling pass, or
Nonewhen the strategy does not sample (e.g.ExactTrotterization).Sampling strategies (e.g.
QDrift) populate this on everyprocess_hamiltoniancall with a faithful concatenation of the drawn terms — duplicates preserved so callers can emit one evolution gate per draw without recomputing multiplicities.
- stateful¶
True if the strategy retains state across
process_hamiltoniancalls. This should be true for strategies that might re-process the Hamiltonian during execution.
Methods Documentation