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 this Select operator 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 of 1 loads 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 15 bits.

  • select_swap_depth (int | None) – A parameter of QROM used to trade off extra wires for reduced circuit depth. Defaults to None, in which case, the select_swap_depth is set to the optimal depth that minimizes the total T-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 GateCount objects, where each object represents a specific quantum gate and the number of times it appears in the decomposition.

Return type:

list[GateCount]