qecx.Reference

class qecx.Reference(key, title=None, doi=None, arxiv=None, url=None, note=None, authors=None, year=None)

Bases: object

Single bibliography entry with a stable citation key.

Equality compares every field, so two entries sharing a key but differing in content are unequal; hashing uses key only. Every entry carries at least one locator among doi, arxiv, and url.

Variables:
  • key (str) – Stable identifier used to cite this entry; matches ^[A-Za-z][A-Za-z0-9_-]*$.

  • title (str | None) – Paper or resource title.

  • doi (str | None) – DOI without URL prefix (e.g. 10.1103/PhysRevLett.97.180501).

  • arxiv (str | None) – arXiv identifier (e.g. 1108.5738 or quant-ph/0605138).

  • url (str | None) – Direct URL; a fallback locator when no DOI or arXiv identifier exists.

  • note (str | None) – Short human-readable note describing the reference’s role.

  • authors (str | None) – Verbatim author list, rendered as-is.

  • year (int | None) – Publication year.