Table of Contents

Quantum Computing Article Writing Guide

This guide provides conventions and best practices for writing articles on quantum computing topics (gates, states, algorithms, concepts). Follow these patterns to maintain consistency across the quantum computing documentation.

Article Structure

Every quantum computing article follows this general pattern:

  1. Title: noun phrase identifying the topic (e.g., “Quantum Fourier Transform”, “Entanglement”)
  2. Opening paragraph: bold term, concise definition, context and importance
  3. Definition section: mathematical formalism and notation
  4. Subsections: Properties, Applications, Implementation, Scalability, Relations
  5. Cross-references: links to related concepts at end of article

Opening Paragraph

The first paragraph establishes context and makes the article self-contained. Format:

Example:

Quantum Fourier Transform is an $n$-qubit unitary gate that maps the computational basis state $|j\rangle$ to a uniform superposition with phases determined by $j$. It is the quantum analogue of the classical discrete Fourier transform and is a subroutine in Shor's factoring algorithm and phase estimation.

Mathematical Notation

Use DokuWiki math mode ($...$ for inline, $$...$$ for block) consistently:

Example block equation:

$$\text{QFT}|j\rangle = \frac{1}{\sqrt{2^n}} \sum_{k=0}^{2^n-1} e^{2\pi i jk/2^n} |k\rangle$$

Sections and Subsections

Standard Sections for Gates

  1. Definition: Mathematical formalism, matrix representation, action on basis states
  2. Properties: Unitarity, self-inverse, Clifford vs non-Clifford, symmetries
  3. Circuit Implementation: Decomposition, gate count, circuit depth
  4. Applications: Which algorithms use this gate and why
  5. Scalability: Performance as $n$ increases, practical limits
  6. Relation to Other Gates: Links to related concepts

Standard Sections for States

  1. Definition: Mathematical formalism, vector representation, eigenvalue information
  2. Properties: Purity, entanglement, orthonormality, stability
  3. Construction: How to prepare the state experimentally or via gates
  4. Measurement: Measurement outcomes in different bases
  5. Applications: Quantum algorithms and protocols that use this state
  6. Relation to Other States: Links to related concepts

Standard Sections for Algorithms

  1. Definition: What problem does it solve and why it's interesting
  2. Overview: High-level algorithm steps (pseudo-code style)
  3. Quantum Subroutines: Detailed breakdown of quantum components
  4. Complexity: Query complexity, circuit depth, resource requirements
  5. Applications: Real-world problems this algorithm addresses
  6. Limitations: Cases where the algorithm doesn't help or has high overhead
  7. Relation to Other Algorithms: Links to related techniques

Formatting Conventions

Lists

Use empty line before lists and format list items as - **bold**: description:

## Key Properties

- **Unitarity**: $U^\dagger U = I$ (reversible operation)
- **Clifford property**: maps Paulis to Paulis (simulatable classically)
- **Error resilience**: robust to certain error types

Bold for Key Terms

Bold the first instance of important terms within sections:

Link to related articles using [[article-id|Display Text]]:

Example:

See [[quantum-gate-qft|Quantum Fourier Transform]] for applications in phase estimation.

Code Comments (Rarely Used)

Only add comments when the code or concept is genuinely non-obvious:

Levels of Detail

When to Include vs. Omit

Always include:

Include when relevant:

Omit:

Writing Tone

Common Patterns

Gate vs. Concept vs. Algorithm

Gates (e.g., quantum-gate-cnot.md):

Concepts (e.g., quantum-gate-clifford.md):

Algorithms (e.g., Grover's, Shor's):

Two-Qubit vs. n-Qubit

Category pages (e.g., quantum-gate-two-qubit.md):

Individual pages (e.g., quantum-gate-cnot.md):

Definition Patterns

For gates:

[Name] is an $n$-qubit gate that [does what]. Its matrix is [form]. It is [key property: Clifford/non-Clifford, self-inverse, etc.].

For states:

[Name] is an $n$-qubit state where [property]. It is an eigenstate of [operator] with eigenvalue [value]. It appears in [which algorithms/protocols].

For concepts:

[Concept] is the set of [gates/states/objects] where [defining property]. They are important because [why they matter]. Examples include [list].

Structure by Category

Single-Qubit Gates (or States)

Two-Qubit Gates (or States)

Multi-Qubit Gates (or States)

Cross-Referencing Checklist

Before finishing an article, ensure:

Common Mistakes to Avoid

  1. Starting with “This article…“ → Be direct with the definition
  2. Omitting the definition → Every article needs mathematical formalism
  3. Inconsistent notation → Decide on ket style, operator notation early
  4. Missing scalability → Always mention how the concept scales with $n$
  5. Embedding links in headings → Move to body text
  6. Over-explaining basics → Link to foundational concepts instead
  7. Omitting applications → Every concept should have at least one concrete use
  8. Generic or vague opening → Be specific about what the article covers

Examples of Well-Formed Articles

Gate article:

State article:

Concept article:

Summary

Write quantum computing articles to be:

The goal is a personal knowledge base where each article is useful, findable, and connects naturally to related ideas.