qdk
Copilot instructions1k starsChanged 4 months agoMITView on GitHub
This repo contains the Microsoft Quantum Development Kit (QDK), which provides tooling for the Q# language. Q# is an open-source programming language designed for developing and running quantum algorithms. This repo is publicly available at https://github.com/microsoft/qdk . All internal source code for the compiler and related tooling has been moved under the source/ directory at the repository root. This does not include Q# libraries (library/), samples (samples/), katas (katas/), or any standard files and folders typically found at the root…
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about microsoft/qdk
- Azure/azure-sdk-for-js“Minor version bump introduced a brand new dependency breaking our build”GitHub · Aug 20, 2026 · 1 reactions
- wgsl-analyzer/wgsl-analyzer“shift operator seems to infer incorrect type”GitHub · Jul 17, 2026 · 1 reactions
- Lucent-Financial-Group/Zeta“deps: Bump the uv-minor-patch group in /src/Core.Python with 3 updates”GitHub · Sep 12, 2026
- Lucent-Financial-Group/Zeta“deps: Bump the uv-minor-patch group in /src/Core.Python with 4 updates”GitHub · Sep 12, 2026
- jupyter/nbformat“CI broke with 5.11.0 release”GitHub · Aug 7, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub (7 times).
On GitHub · 7
- Aug 20, 2026Minor version bump introduced a brand new dependency breaking our build — Azure/azure-sdk-for-js1 reaction · 4 comments
- Jul 17, 2026shift operator seems to infer incorrect type — wgsl-analyzer/wgsl-analyzer1 reaction
- Sep 12, 2026deps: Bump the uv-minor-patch group in /src/Core.Python with 3 updates — Lucent-Financial-Group/Zeta0 reactions · 1 comment
- Sep 12, 2026deps: Bump the uv-minor-patch group in /src/Core.Python with 4 updates — Lucent-Financial-Group/Zeta0 reactions · 2 comments
- Aug 7, 2026CI broke with 5.11.0 release — jupyter/nbformat0 reactions · 5 comments
2 more on GitHub
- Jul 25, 2026comments should be recognized in (almost) every context, keywords should be recognized inside expression contexts too — qsharp-community/qsharp-tmLanguage0 reactions
- Jun 10, 2026Update qsharp requirement from <2.0,>=1.0.33 to >=1.29.1,<2.0 in /azure-quantum — microsoft/azure-quantum-python0 reactions · 2 comments
In this repositoryOne other file it gives its agents.
- qdk-programmingSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 87
When working in Rust parts of the codebase, using cargo commands is usually more efficient than building via ./build.py.
- Very specific: line 89
When working in JavaScript/TypeScript parts of the codebase, using npm scripts is usually more efficient than building via ./build.py.
- Distinctive: line 93
When adding new tests, follow the patterns established in existing tests in the same file or suite.
- Distinctive: line 94
Before opening a PR, ensure the following.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot instructions for the qsharp repo
Overview
This repo contains the Microsoft Quantum Development Kit (QDK), which provides tooling for the Q# language. Q# is an open-source programming language designed for developing and running quantum algorithms. This repo is publicly available at https://github.com/microsoft/qdk .
Architecture
All internal source code for the compiler and related tooling has been moved under the source/ directory at the repository root. This does not include Q# libraries (library/), samples (samples/), katas (katas/), or any standard files and folders typically found at the root of a repository (such as configuration, documentation, or build scripts).
Most of the core components are implemented in Rust. These components are packaged in two ways:
- Compiled as a native Python module and packaged into the
qdkPython package - Compiled into WebAssembly and packaged into the
qsharp-langnpm package
Repo Contents
Rust
- allocator/: A copy of
mimalloc, used for memory allocation in the Rust components of the QDK - compiler/: Core compiler and language processing components
- qsc/: Core compiler logic
- qsc_ast/: Abstract syntax tree definition and utilities
- qsc_circuit/: Circuit diagram representation and generation
- qsc_codegen/: Code generation utilities (QIR, Q#)
- qsc_data_structures/: Common data structures used by the compiler
- qsc_doc_gen/: Documentation generation tools
- qsc_eval/: Runtime evaluation and simulation
- qsc_fir/: Flat IR
- qsc_formatter/: Q# code formatter
- qsc_frontend/: Compiler frontend components
- qsc_hir/: High-level Intermediate Representation
- qsc_linter/: Code quality and style checking
- qsc_lowerer/: IR lowering transformations
- qsc_parse/: Q# parser
- qsc_partial_eval/: Partial evaluation and optimization
- qsc_passes/: HIR passes
- qsc_project/: Project system and manifest handling
- qsc_openqasm_compiler/: OpenQASM compiler frontend
- qsc_openqasm_parser/: OpenQASM parser frontend
- qsc_rca/: Resource counting and analysis
- qsc_rir/: Runtime Intermediate Representation
- fuzz/: Fuzz testing infrastructure for the compiler
- language_service/: Q# language service for editor features
- noisy_simulator/: Simulator for quantum noise modeling
- resource_estimator/: Quantum Resource Estimator implementation
- wasm/: WebAssembly bindings for core components
Build & Release
- docker/: Docker container configurations
Python
- qdk_package/: The
qdkPython package (core package with native Rust extension) - jupyterlab/: JupyterLab extension for Q#
- widgets/: Q# Jupyter widgets
Q# Content
- katas/: Quantum computing tutorials and exercises
- library/: Q# standard and domain-specific libraries
- chemistry/: Chemistry-specific quantum operations
- core/: Q# core library
- fixed_point/: Fixed-point arithmetic support
- qtest/: Testing utilities
- rotations/: Quantum rotation operations
- signed/: Signed arithmetic operations
- std/: Q# standard library
- samples/: Example Q# programs demonstrating language features
- samples_test/: Tests for sample code
JavaScript/TypeScript
- npm/: The
qsharp-langnpm package - playground/: Q# Playground website
- vscode/: Visual Studio Code extension for Q#
- src/: Product source
- test/: Integration tests
Development Workflow
./build.pyruns full CI checks, including lints and unit tests../build.py --wasm --npm --vscodeonly builds the VS Code extension, including its dependencies the WASM module and theqsharp-langnpm package../build.py --qdkonly builds theqdkPython package, including its native dependencies.- Pass
--no-checkto./build.py, in combination with any other command line options, to skip the lints and formatting checks. - When working in Rust parts of the codebase, using
cargocommands is usually more efficient than building via./build.py.- Many lints can be auto-fixed via
cargo clippy --fix.
- Many lints can be auto-fixed via
- When working in JavaScript/TypeScript parts of the codebase, using
npmscripts is usually more efficient than building via./build.py.
Coding Standards
- When adding new tests, follow the patterns established in existing tests in the same file or suite. Often, tests will use helper functions for brevity and readability. Design your tests to reuse these helpers where possible.
- Before opening a PR, ensure the following.
- Code must be formatted by running
cargo fmtandnpm run prettier:fix. ./build.pywithout any command-line arguments must run without errors or warnings.
- Code must be formatted by running
Specific Guidelines for Parts of the Codebase
VS Code Integration Tests (vscode/test/)
npm testfrom thevscode/directory runs the integration tests.npm test -- --suite=language-service: Run only thelanguage-servicetest suite
- Tests use the VS Code for Web testing framework (
@vscode/test-web), which usesplaywrightunder the covers to automate headless Chrome. mochainterface is used to declare tests,chaifor asserts. No mocking library is used. Do not add dependencies to the test suite.- Tests run in the real VS Code environment, in the extension host, which means they can directly interact with the VS Code API.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

