qp.labs.estimator_beta.selectpaulirot_controlled_resource_decomp¶
- selectpaulirot_controlled_resource_decomp(num_ctrl_wires, num_zero_ctrl, target_resource_params)[source]¶
Returns a list representing the resources of the controlled version of the
SelectPauliRotoperator. Each object in the list represents a gate and the number of times it occurs in the circuit.- 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) – A dictionary containing the resource parameters of the target operator.
- Resources:
The resources are obtained from the construction scheme given in Möttönen and Vartiainen (2005), Fig 7a. Specifically, the resources for an \(n\) qubit unitary are given as \(2^{n}\) instances of the
CNOTgate and \(2^{n}\) instances of the controlled single qubit rotation gate (RX,RYorRZ) depending on therot_axis.
- 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]