qp.labs.estimator_beta.select_thc_resource_decomp¶
- select_thc_resource_decomp(thc_ham, num_batches=1, rotation_precision=15, select_swap_depth=None)[source]¶
Returns a list representing the resources of the operator. Each object represents a quantum gate and the number of times it occurs in the decomposition.
Note
This decomposition assumes that an appropriately sized phase gradient state is available. Users should ensure that the cost of constructing this state has been accounted for. See also
PhaseGradient.- Parameters:
thc_ham (
THCHamiltonian) – A tensor hypercontracted Hamiltonian on which thisSelectoperator is being applied.num_batches (int) – The number of batches for loading Givens rotation angles into temporary quantum registers. Must be less than the number of orbitals in
thc_ham. The default value of1loads all angles in one batch.rotation_precision (int) – The number of bits used to represent the precision for loading the rotation angles for basis rotation. The default value is set to
15bits.select_swap_depth (int | None) – A parameter of
QROMused to trade off extra wires for reduced circuit depth. Defaults toNone, in which case, theselect_swap_depthis set to the optimal depth that minimizes the totalT-gate count.
- Resources:
The resources are calculated based on Figure 5 in arXiv:2011.03494 and Figure 4 in arXiv:2501.06165.
- Returns:
A list of
GateCountobjects, where each object represents a specific quantum gate and the number of times it appears in the decomposition.- Return type:
list[
GateCount]