qp.labs.estimator_beta.hadamard_toffoli_based_controlled_decomp¶
- hadamard_toffoli_based_controlled_decomp(num_ctrl_wires, num_zero_ctrl, target_resource_params=None)[source]¶
Returns a list representing the resources for a controlled version of the
Hadamardoperator.Note
This operation assumes a catalytic T state is available. Users should ensure the cost of constructing such a state has been accounted for.
- Parameters:
num_ctrl_wires (int) – the number of qubits the operation is controlled on
num_zero_ctrl (int) – the number of control qubits, that are controlled when in the \(|0\rangle\) state
target_resource_params (dict | None) – A dictionary containing the resource parameters of the target operator.
- Resources:
The resources are derived from Figure 17 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]