Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>BlyxTorchNew to Visual Studio Code? Get it now.
BlyxTorch

BlyxTorch

Rahul Chaube

|
3 installs
| (0) | Free
Train neural networks and simulate differentiable Ry/CNOT circuits in Blyx. Includes native trainers, editable projects and OpenQASM 3 export.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

BlyxTorch

Compare the shipped example output

In a trusted VS Code workspace, open Blyx: Run Installed Framework Example with Blyx Language 1.5.0 or later. Select BlyxTorch and choose the starter or batch example. The general Blyx CLI compiles the example in a temporary folder. The Blyx output channel shows the program’s output and its first difference from the expected output, if any. Install the general CLI and its native toolchain before running framework examples. CLI installation

Check BlyxTorch 0.6.0 in VS Code

This editor includes the exact Blyx framework source and its installation checks. Open a trusted desktop workspace with the general Blyx CLI, its native toolchain and a host linker available. The command below uses the general CLI's native-run command. CLI installation

  1. Create an empty .vscode/tasks.json. Choose Snippets: Fill File with Snippet and select Verify BlyxTorch (workspace tasks). If you have a tasks array already, insert the Verify bundled BlyxTorch (one task) snippet there.
  2. Choose Tasks: Run Task → Blyx: Verify bundled BlyxTorch. On success the terminal prints blyxtorch: installation checks passed. On failure the command reports the failed check and exits with code 1.
  3. To check a project copy, run nest add blyxtorch@0.6.0 and choose the installed-package task matching your project's vendor or src/vendor directory.

The extension's starter directory is also a complete project. Copy it to a writable folder, open that folder in VS Code, and choose Tasks: Run Task → Blyx: Run supplied example. Compare the terminal output with expected.txt.

blyxc native-run vendor/blyxtorch/verify_install.blyx

In a Blyx test, import vendor::blyxtorch::verification and call blyxtorch_verify_install(). The result is zero on success or the number of the first failed check. Package and source files

Train a classifier, fit a multi-output regression or run a convolution and transformer demo. The extension bundles BlyxTorch 0.6.0 for Windows x64, Linux x64 and macOS arm64. Native CPU training works offline. Optional device training uses an installed IREE or OpenXLA runtime. The Blyx Language dependency provides syntax highlighting and Blyx: Run File. Portable training examples · CPU and GPU experiments

Classical simulation of trainable circuits

Simulate trainable Ry/CNOT circuits, differentiate every angle with an adjoint sweep, and export OpenQASM 3 alongside existing CPU and Vulkan workflows. Commands and worked example · Measurements and source data

Run a project in the editor

  1. Create an empty file named sensor.blyx.
  2. Type bt-sensor and accept the BlyxTorch: Fit a desk sensor completion. You can also use Snippets: Fill File with Snippet from the command palette.
  3. Choose Blyx: Run File. The output panel shows 18.625 and 22.375 for two readings held out of training. Edit one input and run it again.

Use bt-queue in another empty Blyx file to classify four print jobs using the trained network. It prints short, long, short and long waits.

Train on CSV files

Download the starter, extract it and open BlyxTorch.code-workspace. In a trusted workspace, use Terminal → Run Task. BlyxTorch: Evaluate print queue fits a model on 16 synthetic rows and scores six separate rows. BlyxTorch: Predict new print jobs trains and prints four probabilities. BlyxTorch: Use saved queue weights runs inference without retraining. Download the starter projects

The native tasks support Windows x64, Linux x64 and macOS arm64. The portable single-file examples also run in the Blyx website playground. To train from your own terminal, use the native package for your platform. The native CPU workflow runs without Python or PyTorch. Framework and installation guide · Training handbook

Install without a marketplace connection

Download the Blyx Language VSIX and BlyxTorch VSIX on a connected machine. On the target desktop choose Extensions: Install from VSIX for Blyx Language first, followed by BlyxTorch. The trainer runs locally. Blyx Language VSIX · BlyxTorch release downloads

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