Documentation
In this part, detailed documentation of the Qhronology package is presented. This includes in-depth descriptions of the package’s various submodules and their respective functions and classes (including all methods and properties). Numerous usage examples of many of the most important objects are also provided. Note however that only the components of the package which are intended to be used by the end user are included here. For the other, undocumented modules, please see the relevant parts of the package’s source code.
Quantum
The quantum
subpackage contains most of Qhronology’s underlying mathematical framework.
Module |
Contents |
Objects |
---|---|---|
|
Classes for the creation of quantum states. |
|
|
Classes for the creation of quantum gates. |
Main class:
Subclasses:
Combining gates:
|
|
A class for the creation of quantum circuits. |
Class:
|
|
A class for the creation of quantum circuits containing closed timelike curves. Classes and functions implementing quantum prescriptions of time travel. |
Main class:
Subclasses:
Functions:
|
Mechanics
The mechanics
subpackage contains Qhronology’s core logic for creating quantum vectors and matrices, performing operations on such constructs, and computing various significant scalar quantities.
Module |
Contents |
Objects |
---|---|---|
|
Core functions for creating quantum vectors and matrices. |
|
|
Functions for computing quantum quantities from matrices. A mixin for endowing compatible classes with the ability to calculate these quantities. |
|
|
Functions for performing quantum operations on matrices. A mixin for endowing compatible classes with the ability to perform these operations. |
Structure
For reference, a structure diagram detailing the relationships between Qhronology’s classes in the standard UML (Unified Modelling Language) framework is depicted in Figure 7.


Types
Qhronology’s underlying functionality takes advantage of a few bespoke type aliases, which are detailed in the table below.
Type Alias |
Description |
Definition |
---|---|---|
|
Scalar numerical numbers |
|
|
SymPy symbolic scalar expressions and symbols |
|
|
SymPy (mutable) dense matrices |
|
|
NumPy arrays |
|