Skip to Content
DocsUnitaryLab Simulator User ManualAlgorithms and UtilitiesAlgorithm Library Overview

Algorithm Library Overview

unitarylab.library provides common algorithms, matrix utilities, and application frameworks on top of the quantum-circuit interface. This section is organized by task; examples use small CPU configurations.

Top-level algorithm entries

The following ten names can be imported directly from unitarylab.library:

from unitarylab.library import ( QFT, IQFT, QPE, LCU, block_encode, hamiltonian_simulation, solve, QSVT, QSP, QSP_hamiltonian_simulation, )

These entries cover circuit construction, algorithm execution, and result objects. Other capabilities must be imported from their corresponding submodules; they are not automatically exposed in the top-level namespace.

Choose by task

TaskRecommended entryReturn formDocumentation
Construct a Fourier-transform circuitQFT(), IQFT()CircuitQFT, QPE, and LCU
Estimate an eigenphase of a unitaryQPE()Circuit or tupleQFT, QPE, and LCU
Construct a linear combination of unitariesLCU()CircuitQFT, QPE, and LCU
Simulate hamiltonian_simulation()Result objectHamiltonian Simulation
Block encoding and polynomial transformsblock_encode(), QSP(), QSVT()Circuit, tuple, or result objectQSP, QSVT, and Block Encoding
Solve solve()LinearSolverResultLinear System Solvers
Decompose and combine Pauli operatorsunitarylab.library.pauli_operatorList, matrix, or circuitPauli Utilities
Construct Fermi–Hubbard Hamiltoniansunitarylab.library.fermi_hubbardString, dictionary, or result objectFermi–Hubbard Utilities
Solve Ising/QUBO optimization problemsunitarylab.library.qubocoreDictionaryQUBO and Ising Solvers
Solve PDEsunitarylab.library.equationDictionary and generated filesPDE Solver Framework
Build and train quantum machine-learning modelsunitarylab.library.qmlTensors, models, and training recordsQML Overview and Backends

Return values and execution cost

  • Circuit constructors only create a Circuit; the caller decides whether to execute it.
  • High-level algorithms can return result objects whose circuits or numerical results are computed on demand.
  • PDE, QUBO, and some QML workflows return dictionaries or tensors; read fields documented for the corresponding interface.
  • Qubit count, approximation order, shots, and training epochs affect runtime and memory. Validate calls with a small example before increasing problem size.

Quantum chemistry is provided by a separate extension package; see Chemistry Extension.

Last updated on