# qml.resource¶

## Overview¶

The resource module provides functionality to estimate the number of non-Clifford gates and logical qubits required to implement advanced quantum algorithms.

### Functions¶

 estimate_error(coeffs[, variances, shots]) Estimate the error in computing an expectation value with a given number of measurements. estimate_shots(coeffs[, variances, error]) Estimate the number of measurements required to compute an expectation value with a target error.

### Classes¶

 DoubleFactorization(one_electron, two_electron) Estimate the number of non-Clifford gates and logical qubits for a quantum phase estimation algorithm in second quantization with a double-factorized Hamiltonian. FirstQuantization(n, eta, omega[, error, …]) Estimate the number of non-Clifford gates and logical qubits for a quantum phase estimation algorithm in first quantization using a plane-wave basis.