Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>HyperPlasmNew to Visual Studio Code? Get it now.
HyperPlasm

HyperPlasm

HyperPlasm

|
1 install
| (0) | Free
Language support for HyperPlasm — the photonic computing language. Syntax highlighting, theme-aware file icons, snippets, and language features for .hpm, .pc, .hmx, .hpx, .plx, and .hpc files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HyperPlasm — VS Code Extension

HyperPlasm is the photonic computing language for designing and simulating photonic circuits, quantum-optical systems, and integrated photonic chips. This extension brings first-class language support to VS Code.


Features

🌈 Theme-Aware File Icons

Your HyperPlasm files get a custom icon — the hexagonal molecular network logo:

  • Dark mode → white icon (crisp on dark backgrounds)
  • Light mode → purple-to-cyan gradient icon (matches the brand)

The icon appears automatically when you open or create any HyperPlasm file:

main.hpm    main.hpx    main.pc
main.hmx    main.plx    main.hpc

✨ Syntax Highlighting

Full syntax highlighting covering:

  • Photonic keywords: circuit, component, waveguide, resonator, photon, emit, detect, measure, …
  • Built-in components: MachZehnder, RingResonator, DirectionalCoupler, SNSPD, Laser, …
  • Physical units highlighted separately: nm, um, THz, GHz, mW, fs, deg, …
  • Types, functions, operators, strings, numbers, comments

📐 Snippets

Type a prefix and press Tab to expand:

Prefix Expands to
circuit Photonic circuit definition
component Reusable photonic component
mzi Mach-Zehnder interferometer
ring Ring resonator
coupler Directional coupler
laser Laser source
detector SNSPD single-photon detector
bell Entangled Bell-state photon pair
qkd Quantum key distribution circuit
pnn_layer Photonic neural network layer
connect Connect two photonic components
emit Emit photon into channel
detect Detect photon from channel
measure Measure photonic quantum state
fn, afn Function / async function
match Pattern match
let, letm, const Variable declarations
cband C-band telecom wavelength range

🔧 Smart Editing

  • Auto-closing brackets, parentheses, quotes
  • Code folding regions (// #region / // #endregion)
  • Block comment toggling (/* */)
  • Line comment toggling (//)
  • Doc comment insertion (///)

Supported File Extensions

Extension Description
.hpm HyperPlasm main source
.hpx HyperPlasm extension module
.pc Photonic circuit definition
.hmx HyperPlasm mixed circuit
.plx Photonic library extension
.hpc HyperPlasm component file

Enabling the File Icon Theme

After installing:

  1. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Type "File Icon Theme" → select Preferences: File Icon Theme
  3. Choose HyperPlasm File Icons

Your HyperPlasm files will now show the logo icon.


Quick Start

// main.hpm — simple beamsplitter circuit
@photonic_circuit
circuit HelloPhoton(input: Photon) -> (Photon, Photon) {
    let bs = DirectionalCoupler {
        coupling_length: 10.0 um,
        gap:             0.2 um,
        wavelength:      1550 nm,
    };

    let (output_a, output_b) = couple(bs, input);
    (output_a, output_b)
}

About HyperPlasm

HyperPlasm is a photonic computing language designed for:

  • Integrated photonic chip design
  • Quantum optical circuit simulation
  • Photonic neural network architectures
  • Quantum key distribution protocols
  • Nonlinear photonic computation

Publisher

hyperplasm — Visual Studio Marketplace


License

MIT © HyperPlasm

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft