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.
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. |
|
Resource class for the PauliRot gate. |
|
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 the BasisRotation gate. |
|
Resource class for the ControlledSequence gate. |
|
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 QROM template. |
|
Resource class for the QROMStatePreparation template. |
|
Resource class for qubitization of tensor hypercontracted Hamiltonian. |
|
This operation applies a controlled |
|
Resource class for the Select gate. |
|
Resource class for the SelectPauliRot gate. |
|
Resource class for creating the custom Select operator for tensor hypercontracted (THC) Hamiltonian. |
|
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. |
|
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 preparing a uniform superposition. |
Resource Hamiltonians¶
|
For a compressed double-factorized (CDF) Hamiltonian, stores the minimum necessary information pertaining to resource estimation. |
|
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. |