qp.labs.estimator_beta.select_thc_controlled_resource_decomp¶
- select_thc_controlled_resource_decomp(num_ctrl_wires, num_zero_ctrl, target_resource_params)[source]¶
Returns a list representing the resources for the controlled version of the operator.
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:
num_ctrl_wires (int) – the number of wires the operation is controlled on
num_zero_ctrl (int) – the number of control wires, that are controlled when in the \(|0\rangle\) state
target_resource_params (dict) – A dictionary containing the resource parameters of the target operator.
- Resources:
The resources are calculated based on Figure 5 in arXiv:2011.03494.
- 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]