Debian Codegraph @

texmf-dist/doc/latex/quantumcubemodel/README.md

raw
1 # Quantum Cube Model – LaTeX Package
2
3 Visualize quantum states and gate operations using the quantum cube model in LaTeX.
4
5 ## Overview
6
7 The `quantumcubemodel` package provides simple LaTeX commands for creating intuitive cube-based diagrams to represent quantum states of 1, 2, or 3 qubits.
8 Inspired by Prof. B. Just’s framework, it’s especially useful for teaching, presentations, and educational material in quantum computing.
9
10 ## Breaking Changes in v0.2.0
11
12 **v0.2.0 introduces breaking changes compared to v0.1.0.**
13
14 > These changes result from a major redesign of the API to allow for more flexibility and future enhancements.
15 While this means some existing code may need to be updated, the new API makes it easier to extend and customize functionality going forward.
16
17 ## Features
18
19 - Draw single Coefs
20 - Cube diagrams for 1, 2, or 3-qubit quantum states
21 - Representation of complex amplitudes and phases
22 - Visual transitions for quantum gates:
23 - Hadamard
24 - Pauli-X / Y / Z
25 - CNot
26 - Toffoli (CCNot)
27 - Wireframe (for unknown gates)
28 - exposing tikz canvas for extended usecases
29
30 ## Running Tests
31
32 There is a Python Script that is used to generate on png per feature of this package,
33 and compares those against the images in `./golden` (which are manualy checked for correctnes).
34
35 > `./generate-diagrams.py`
36
37 ## Generating final sty file
38
39 There is a Python Script that concats all the files in `./quantumcubemodel` into the final .sty file.
40 Changes to the package should be made in that dir and or the `qcmx.sty` file.
41
42 > `./build.py`
43
44 ## License
45
46 MIT License
47 © 2025 Cedric Schacht
48
49 ## Author
50
51 Cedric Schacht
52
53 [[email protected]](mailto:[email protected])
54
55 [https://github.com/CedricSchacht/quantumcubemodel](https://github.com/CedricSchacht/quantumcubemodel)