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
- Distinctive: line 7
Use idiomatic Rust with proper error handling using Result types
- Distinctive: line 9
Follow the existing code style and patterns in this workspace
- Distinctive: line 11
Prefer const generics and compile-time checks where applicable
- Distinctive: line 13
Use proptest or hypothesis for property-based testing where appropriate
- Distinctive: line 15
Use #[pyo3(name = "...")] to provide Python-friendly naming where Rust conventions differ
- Distinctive: line 16
When adding or otherwise modifying Python bindings, ensure that the .pyi files are updated accordingly.
- Distinctive: line 18
Before implementing a new feature, check how similar types in the codebase already handle it — consistency with existing patterns is …
- Distinctive: line 19
Use Criterion for rust benchmarks (see existing benchmarks in benches/ folders), and use asv for Python benchmarks.
- Distinctive: line 21
When adding new functionality, include relevant unit tests and documentation.
- Distinctive: line 22
Avoid inline commments. They are usually redundant and often wrong.
- Distinctive: line 23
Avoid abbreviations and single-letter variable names, unless they very clearly improve clarity.
≈ “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
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 --releasefrom thebindings/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.
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.

