qml.estimator¶
This module contains tools dedicated to logical resource estimation.
The estimator module is the centre for quantum resource estimation in PennyLane.
Functionality within estimator is intended purely for resource estimation, and is not intended for true program compilation and execution.
For a quick introduction to estimator, take a look at our demo on
How to use PennyLane for Resource Estimation!
See also
The resource module for resource tracking of compiled programs.
Resource Estimation¶
The estimate() function is the standard entry point for estimating the
resources required by a quantum program. Submit a program written with either standard PennyLane
operators (Operation) or resource operators (ResourceOperator),
and instantly receive the resource estimate in the form of Resources.
|
Estimate the quantum resources required to implement a circuit or operator in terms of a given gateset. |
|
Stores the estimated resource requirements of a quantum circuit. |
Sets the values of precisions and custom decompositions when estimating resources for a quantum workflow. |
Resource Operators¶
|
Base class to represent quantum operators according to the fundamental set of information required for resource estimation. |
|
This class is a minimal representation of a |
|
Stores a lightweight representation of a gate and its number of occurrences in a decomposition. |
Qubit Management¶
|
Allows allocation of work wires through |
|
Allows freeing |
|
Manages and tracks the auxiliary and algorithmic wires used in a quantum circuit. |
Resource Operators¶
|
Resource class for the symbolic Adjoint operation. |
|
Resource class for the CCZ gate. |
|
Resource class for the CH gate. |
|
Resource class for the CNOT gate. |
|
Resource class for the CRX gate. |
|
Resource class for the CRY gate. |
|
Resource class for the CRZ gate. |
|
Resource class for the CRot gate. |
|
Resource class for the CSWAP gate. |
|
Resource class for the CY gate. |
|
Resource class for the CZ gate. |
|
Change of Basis resource operator. |
|
Resource class for the symbolic Controlled operation. |
|
Resource class for the ControlledPhaseShift gate. |
|
Resource class for the GlobalPhase gate. |
|
Resource class for the Hadamard gate. |
|
Resource class for the Identity gate. |
|
Resource class for the MultiControlledX gate. |
|
Resource class for the MultiRZ gate. |
|
A resource operator representing a projector-controlled phase gate. |
|
Resource class for an arbitrary Pauli word rotation operation. |
|
Resource class for the PhaseShift gate. |
|
Resource class for the symbolic Pow operation. |
|
Resource class for the symbolic Prod operation. |
|
Resource class for the QubitUnitary template. |
|
Resource class for the RX gate. |
|
Resource class for the RY gate. |
|
Resource class for the RZ gate. |
|
Resource class for the Rot gate. |
|
Resource class for the S-gate. |
|
Resource class for the SWAP gate. |
|
Resource class for the SingleExcitation gate. |
|
Resource class for the T-gate. |
|
Resource class representing a TemporaryAND gate. |
|
Resource class for the Toffoli gate. |
|
Resource class for the X-gate. |
|
Resource class for the Y-gate. |
|
Resource class for the Z-gate. |
Resource Templates¶
|
Resource class for the Approximate QFT. |
|
Resource class for preparing a state using coherent alias sampling. |
|
Resource class for BBQRAM. |
|
Resource class for the BasisRotation gate. |
|
Resource class for the ControlledSequence gate. |
|
Resource class for the Generalized Quantum Signal Processing (GQSP) algorithm. |
|
Resource class for performing Hamiltonian simulation using GQSP. |
|
Resource class for the Instantaneous Quantum Polynomial (IQP) template. |
|
This operation applies a controlled |
|
Resource class for Iterative Quantum Phase Estimation (IQPE). |
|
Resource class for the MPSPrep template. |
|
Resource class for the OutMultiplier gate. |
|
Resource class for the OutofPlaceSquare gate. |
|
Resource class for the PhaseGradient gate. |
|
Resource class for preparing the state for tensor hypercontracted (THC) Hamiltonian. |
|
Resource class for QFT. |
|
Resource class for QuantumPhaseEstimation (QPE). |
|
Resource class for the Quantum Read-Only Memory (QROM) template. |
|
Resource class for the QROMStatePreparation template. |
|
Implements the Quantum Signal Processing (QSP) circuit. |
|
Resource class for Quantum Singular Value Transformation (QSVT). |
|
Resource class for the Qubitization operator. |
|
Resource class for qubitization of tensor hypercontracted Hamiltonian. |
|
Resource class for the Reflection operator. |
|
This operation applies a controlled |
|
Resource class for the Select gate. |
|
Resource class for the |
|
Resource class for the uniformly controlled rotation gate. |
|
Resource class for creating the custom |
|
Resource class for the SemiAdder gate. |
|
Resource class for comparing the values encoded in two input qubits. |
|
An operation representing the Suzuki-Trotter product approximation for the complex matrix exponential of a compressed double-factorized (CDF) Hamiltonian. |
|
A resource operation representing the Suzuki-Trotter product approximation for the complex matrix exponential of a Hamiltonian represented as a linear combination of tensor products of Pauli operators. |
|
An operation representing the Suzuki-Trotter product approximation for the complex matrix exponential of a Hamiltonian operator. |
|
An operation representing the Suzuki-Trotter product approximation for the complex matrix exponential of a tensor hypercontracted (THC) Hamiltonian. |
|
An operation representing the Suzuki-Trotter product approximation for the complex matrix exponential of a vibrational Hamiltonian. |
|
An operation representing the Suzuki-Trotter product approximation for the complex matrix exponential of a real-space vibronic Hamiltonian. |
|
Resource class for comparing the integer values encoded in two quantum registers of two qubits each. |
|
Resource class for Quantum Phase Estimation (QPE) using the unary iteration technique. |
|
Resource class for preparing a uniform superposition. |
Resource Hamiltonians¶
|
For a compressed double-factorized (CDF) Hamiltonian, stores the minimum necessary information pertaining to resource estimation. |
|
Stores the minimum necessary information required to estimate resources for a Hamiltonian expressed as a linear combination of tensor products of Pauli operators. |
|
For a tensor hypercontracted (THC) Hamiltonian, stores the minimum necessary information pertaining to resource estimation. |
|
For a vibrational Hamiltonian, stores the minimum necessary information pertaining to resource estimation. |
|
For a vibronic Hamiltonian, stores the minimum necessary information pertaining to resource estimation. |
QPE Resource Classes¶
|
Estimate the number of non-Clifford gates and logical qubits for a quantum phase estimation algorithm in first quantization using a plane-wave basis. |
|
Estimate the number of non-Clifford gates and logical qubits for a quantum phase estimation algorithm in second quantization with a double-factorized Hamiltonian. |
Measurement Functions¶
|
Estimate the number of measurements required to compute an expectation value with a target error. |
|
Estimate the error in computing an expectation value with a given number of measurements. |