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.

Resources([num_wires, num_gates, …])

Contains attributes which store key resources such as number of gates, number of wires, shots, depth and gate types.

ResourcesOperation(*params[, wires, …])

Base class that represents quantum gates or channels applied to quantum states and stores the resource requirements of the quantum gate.