qecx.Reference¶
- class qecx.Reference(key, title=None, doi=None, arxiv=None, url=None, note=None, authors=None, year=None)¶
Bases:
objectSingle 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
keyonly. Every entry carries at least one locator amongdoi,arxiv, andurl.- Variables:
key (str) – Stable identifier used to cite this entry; matches
^[A-Za-z][A-Za-z0-9_-]*$.doi (str | None) – DOI without URL prefix (e.g.
10.1103/PhysRevLett.97.180501).arxiv (str | None) – arXiv identifier (e.g.
1108.5738orquant-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.