advection-schrodingerization

Converts 1D advection equation into a discretized system and solves via Schrödingerization.

30|2|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/unitarylab/quantum-skills --skill advection-schrodingerization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: advection-schrodingerization
Source: https://github.com/unitarylab/quantum-skills/tree/main/algorithms/schrodingerization/advection-schrodingerization
Command: npx skills add https://github.com/unitarylab/quantum-skills --skill advection-schrodingerization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, unitarylab, and includes scripts (resource) components.

What problem does it solve?

This skill provides a hybrid framework to solve the 1D advection equation by combining discretization, Schrödingerization, and unitary evolution to enable both classical and quantum simulations.

Core Features & Use Cases

  • PDE parsing and discretization: extract domain, grid, boundary conditions, and velocity, then build the derivative operator.
  • Schrödingerization transformation: convert non-unitary systems to a Hamiltonian form suitable for quantum or hybrid simulation.
  • Dual execution paths: supports classical Schrödinger solver and quantum Trotterized evolution to compare results and performance.

Quick Start

Run the provided script to execute the 1D advection Schrödingerization workflow on the included test problem.

Frequently Asked Questions about advection-schrodingerization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I solve the 1D advection equation when the discretization scheme is non-unitary?

You can solve a non-unitary 1D advection equation by applying Schrödingerization, which transforms the discretized system into a Hamiltonian form suitable for unitary time evolution. This allows quantum or hybrid simulation of the PDE.

What is Schrödingerization for numerical PDEs?

Schrödingerization is a transformation technique that converts non-unitary discretized PDE systems into a Hamiltonian form. This enables the use of quantum evolution methods to solve classical numerical equations.

How do I compare classical and quantum time evolution for advection problems?

You can compare classical and quantum time evolution by running dual execution paths provided by the solver: a classical Schrödingerization-based solver and a quantum Trotterized evolution, evaluating accuracy and performance on the same grid.

Do I need numpy and unitarylab to build Hamiltonians for quantum simulation?

Yes, you need numpy and the unitarylab toolkit. These dependencies are required to build derivative operators, construct Hamiltonians, and execute the Schrödingerization and Trotterized solvers.

Can I customize boundary conditions for the 1D advection Schrödingerization workflow?

Yes, the workflow supports customizable boundary conditions on the simulation grid. The PDE parsing and discretization step extracts domain, grid, and boundary conditions to build the appropriate derivative operator.

What are the limitations of using Trotterized evolution for advection PDEs?

Trotterized evolution accuracy depends on the time step size and grid resolution. Comparing its results against the classical Schrödingerization solver on the same grid helps identify numerical errors and performance limits.