lcu
OfficialSpeed up quantum linear-system solving with LCU.
Education & Research#circuit-design#linear-systems#quantum-algorithms#lcu#unitaries#amplitude-encoding
Authorunitarylab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Efficiently apply a weighted sum of unitaries to a quantum state by constructing a PREPARE circuit on an ancilla register and using a SELECT operator, enabling access to non-unitary operations through probabilistic post-selection.
Core Features & Use Cases
- Encodes weights alpha_j into ancilla amplitudes via a state-preparation tree and Ry/McRy gates.
- Implements the SELECT operator as a multiplexed application of U_j conditioned on ancilla basis states.
- Acts as a building block for quantum linear solvers, Hamiltonian simulation, and subroutines like QSP/QSVT.
Quick Start
Initialize alphas and unitaries, then run the LCU algorithm to apply the weighted sum of unitaries to your system.
Dependency Matrix
Required Modules
numpy
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: lcu Download link: https://github.com/unitarylab/quantum-skills/archive/main.zip#lcu Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.