agentleFS
MicrosoftKnown publishermicrosoft/qdk-ec/.github/copilot-instructions.md

qdk-ec

Copilot instructions65 starsChanged 10 months agoMITView on GitHub

For work under qodec/, follow the scoped qodec instructions. They link to the model, Python binding, and verification guidance; do not apply those rules to sibling crates.

The file

We split this copilot-instructions.md into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use idiomatic Rust with proper error handling using Result types

    line 7
  2. Distinctive:

    Follow the existing code style and patterns in this workspace

    line 9
  3. Distinctive:

    Prefer const generics and compile-time checks where applicable

    line 11
  4. Distinctive:

    Use proptest or hypothesis for property-based testing where appropriate

    line 13
  5. Distinctive:

    Use #[pyo3(name = "...")] to provide Python-friendly naming where Rust conventions differ

    line 15
  6. Distinctive:

    When adding or otherwise modifying Python bindings, ensure that the .pyi files are updated accordingly.

    line 16
  7. Distinctive:

    Before implementing a new feature, check how similar types in the codebase already handle it — consistency with existing patterns is …

    line 18
  8. Distinctive:

    Use Criterion for rust benchmarks (see existing benchmarks in benches/ folders), and use asv for Python benchmarks.

    line 19
  9. Distinctive:

    When adding new functionality, include relevant unit tests and documentation.

    line 21
  10. Distinctive:

    Avoid inline commments. They are usually redundant and often wrong.

    line 22
  11. Distinctive:

    Avoid abbreviations and single-letter variable names, unless they very clearly improve clarity.

    line 23

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Copilot Instructions

Code Style

  • This is a quantum computing library focused on Pauli operators, Clifford gates, and stabilizer simulation.
  • The binar crate provides bit manipulation primitives; paulimer builds on it for Pauli algebra. The pauliverse crate provides stabilizer simulation; synthesis handles circuit synthesis.
  • Use idiomatic Rust with proper error handling using Result types
  • Rust code should be compliant with clippy --all-targets --all-features -- -D clippy::pedantic
  • Follow the existing code style and patterns in this workspace
  • For Python bindings, use PyO3 macros consistently with existing code
  • Prefer const generics and compile-time checks where applicable
  • Prioritize runtime performance and memory efficiency in Rust implementations. Speed is a critical feature. But remember that the best performance usually comes from simplicity and clarity.
  • Use proptest or hypothesis for property-based testing where appropriate
  • Python bindings should expose a Pythonic API, not just a direct Rust translation
  • Use #[pyo3(name = "...")] to provide Python-friendly naming where Rust conventions differ
  • When adding or otherwise modifying Python bindings, ensure that the .pyi files are updated accordingly.
  • To build and install the Python bindings, use maturin develop --release from the bindings/python/ directory for the corresponding crate.
  • Before implementing a new feature, check how similar types in the codebase already handle it — consistency with existing patterns is valuable
  • Use Criterion for rust benchmarks (see existing benchmarks in benches/ folders), and use asv for Python benchmarks.
  • Benchmarks used to compare packages should typically use deterministic inputs for reproducibility
  • When adding new functionality, include relevant unit tests and documentation.
  • Avoid inline commments. They are usually redundant and often wrong. Prefer clear code and good variable names instead.
  • Avoid abbreviations and single-letter variable names, unless they very clearly improve clarity.

qodec

For work under qodec/, follow the scoped qodec instructions. They link to the model, Python binding, and verification guidance; do not apply those rules to sibling crates.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.