Package structure#
The directory structure of the package appears below.
qhronology
├──quantum
│ ├──circuits.py
│ ├──gates.py
│ ├──prescriptions.py
│ └──states.py
├──mechanics
│ ├──matrices.py
│ ├──operations.py
│ └──quantities.py
└──utilities
├──classification.py
├──diagrams.py
├──helpers.py
├──objects.py
└──symbolics.py
It consists of three subpackages:
quantum: most of the package’s underlying mathematical framework and its user-facing classes.mechanics: core logic for creating fundamental quantum objects, performing operations on them, and computing various quantum-mechanical scalar quantities.utilities: a collection of modules containing various functionality intended for internal-use only, including the visualization engine, the coreQuantumObjectclass, and assorted helper functions.
In this documentation, we focus solely on the quantum and mechanics subpackages, with the former containing all of the classes intended to be user-facing. These are summarized in the following subsections.
quantum subpackage#
The quantum subpackage contains most of Qhronology’s underlying mathematical framework and its user-facing classes.
Module |
Contents |
Objects |
|---|---|---|
states.py |
Classes for the creation of quantum states.
|
|
gates.py |
Classes for the creation of quantum gates.
|
Main class:
Subclasses:
Combinations:
|
circuits.py |
A class for the creation of quantum circuits.
|
Class:
|
prescriptions.py |
A class for the creation of quantum circuits containing closed timelike curves.
Classes and functions implementing quantum prescriptions of time travel.
|
mechanics subpackage#
The mechanics subpackage contains Qhronology’s core logic for creating fundamental quantum objects, performing operations on them, and computing scalar quantities.
Module |
Contents |
Objects |
|---|---|---|
matrices.py |
Core functions for creating quantum vectors and matrices.
|
|
operations.py |
Functions for performing quantum operations on matrices.
A mixin for endowing compatible classes with the ability to perform these operations.
|
|
quantities.py |
Functions for computing quantum quantities from matrices.
A mixin for endowing compatible classes with the ability to calculate these quantities.
|