summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrefetch2022-10-23 22:18:11 +0200
committerPrefetch2022-10-23 22:18:11 +0200
commitbcae81336764eb6c4cdf0f91e2fe632b625dd8b2 (patch)
treebf353d26203b6792bb2ab5d7bbb5c65819c9e0a0
parent16555851b6514a736c5c9d8e73de7da7fc9b6288 (diff)
Optimize and improve naming of all images in knowledge base
-rw-r--r--source/_includes/image.html34
-rw-r--r--source/know/concept/bernstein-vazirani-algorithm/bernstein-vazirani-circuit.avifbin0 -> 3710 bytes
-rw-r--r--source/know/concept/bernstein-vazirani-algorithm/index.md4
-rw-r--r--source/know/concept/bloch-sphere/bloch-small.jpgbin37110 -> 0 bytes
-rw-r--r--source/know/concept/bloch-sphere/bloch.jpgbin98023 -> 0 bytes
-rw-r--r--source/know/concept/bloch-sphere/index.md4
-rw-r--r--source/know/concept/bloch-sphere/sketch-full.pngbin0 -> 98869 bytes
-rw-r--r--source/know/concept/bloch-sphere/sketch-half.avifbin0 -> 11592 bytes
-rw-r--r--source/know/concept/bloch-sphere/sketch-half.jpgbin0 -> 56094 bytes
-rw-r--r--source/know/concept/bloch-sphere/sketch-half.pngbin0 -> 60457 bytes
-rw-r--r--source/know/concept/bloch-sphere/sketch-half.webpbin0 -> 27428 bytes
-rw-r--r--source/know/concept/deutsch-jozsa-algorithm/deutsch-circuit.avifbin0 -> 2028 bytes
-rw-r--r--source/know/concept/deutsch-jozsa-algorithm/deutsch-jozsa-circuit.avifbin0 -> 3311 bytes
-rw-r--r--source/know/concept/deutsch-jozsa-algorithm/index.md12
-rw-r--r--source/know/concept/dispersive-broadening/index.md4
-rw-r--r--source/know/concept/dispersive-broadening/pheno-disp-small.jpgbin95385 -> 0 bytes
-rw-r--r--source/know/concept/dispersive-broadening/pheno-disp.jpgbin285990 -> 0 bytes
-rw-r--r--source/know/concept/dispersive-broadening/simulation-full.pngbin0 -> 670730 bytes
-rw-r--r--source/know/concept/dispersive-broadening/simulation-half.avifbin0 -> 30415 bytes
-rw-r--r--source/know/concept/dispersive-broadening/simulation-half.jpgbin0 -> 137095 bytes
-rw-r--r--source/know/concept/dispersive-broadening/simulation-half.pngbin0 -> 183226 bytes
-rw-r--r--source/know/concept/dispersive-broadening/simulation-half.webpbin0 -> 63436 bytes
-rw-r--r--source/know/concept/fabry-perot-cavity/cavity.pngbin11749 -> 0 bytes
-rw-r--r--source/know/concept/fabry-perot-cavity/index.md6
-rw-r--r--source/know/concept/fabry-perot-cavity/sketch-full.pngbin0 -> 15362 bytes
-rw-r--r--source/know/concept/fabry-perot-cavity/sketch-half.avifbin0 -> 2481 bytes
-rw-r--r--source/know/concept/fabry-perot-cavity/sketch-half.jpgbin0 -> 12307 bytes
-rw-r--r--source/know/concept/fabry-perot-cavity/sketch-half.pngbin0 -> 11616 bytes
-rw-r--r--source/know/concept/fabry-perot-cavity/sketch-half.webpbin0 -> 4702 bytes
-rw-r--r--source/know/concept/feynman-diagram/boson.avifbin0 -> 3329 bytes
-rw-r--r--source/know/concept/feynman-diagram/boson.png (renamed from source/know/concept/feynman-diagram/interaction.png)bin4811 -> 4811 bytes
-rw-r--r--source/know/concept/feynman-diagram/example.avifbin0 -> 4916 bytes
-rw-r--r--source/know/concept/feynman-diagram/example.png (renamed from source/know/concept/feynman-diagram/conservation.png)bin6878 -> 6878 bytes
-rw-r--r--source/know/concept/feynman-diagram/fermion-heavy.avifbin0 -> 1992 bytes
-rw-r--r--source/know/concept/feynman-diagram/fermion-heavy.png (renamed from source/know/concept/feynman-diagram/fullgf.png)bin3292 -> 3292 bytes
-rw-r--r--source/know/concept/feynman-diagram/fermion-light.avifbin0 -> 1955 bytes
-rw-r--r--source/know/concept/feynman-diagram/fermion-light.png (renamed from source/know/concept/feynman-diagram/freegf.png)bin3226 -> 3226 bytes
-rw-r--r--source/know/concept/feynman-diagram/impurity.avifbin0 -> 1211 bytes
-rw-r--r--source/know/concept/feynman-diagram/impurity.png (renamed from source/know/concept/feynman-diagram/perturbation.png)bin1727 -> 1727 bytes
-rw-r--r--source/know/concept/feynman-diagram/index.md23
-rw-r--r--source/know/concept/metacentric-height/index.md4
-rw-r--r--source/know/concept/metacentric-height/sketch-full.pngbin0 -> 154087 bytes
-rw-r--r--source/know/concept/metacentric-height/sketch-half.avifbin0 -> 6411 bytes
-rw-r--r--source/know/concept/metacentric-height/sketch-half.jpgbin0 -> 43008 bytes
-rw-r--r--source/know/concept/metacentric-height/sketch-half.pngbin0 -> 69215 bytes
-rw-r--r--source/know/concept/metacentric-height/sketch-half.webpbin0 -> 16714 bytes
-rw-r--r--source/know/concept/metacentric-height/sketch.jpgbin39522 -> 0 bytes
-rw-r--r--source/know/concept/modulational-instability/index.md4
-rw-r--r--source/know/concept/modulational-instability/pheno-mi-small.jpgbin72375 -> 0 bytes
-rw-r--r--source/know/concept/modulational-instability/pheno-mi.jpgbin256629 -> 0 bytes
-rw-r--r--source/know/concept/modulational-instability/simulation-full.pngbin0 -> 1006532 bytes
-rw-r--r--source/know/concept/modulational-instability/simulation-half.avifbin0 -> 25934 bytes
-rw-r--r--source/know/concept/modulational-instability/simulation-half.jpgbin0 -> 127062 bytes
-rw-r--r--source/know/concept/modulational-instability/simulation-half.pngbin0 -> 225499 bytes
-rw-r--r--source/know/concept/modulational-instability/simulation-half.webpbin0 -> 54176 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/frequency-full.pngbin0 -> 66775 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/frequency-half.avifbin0 -> 12506 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/frequency-half.jpgbin0 -> 52244 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/frequency-half.pngbin0 -> 41824 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/frequency-half.webpbin0 -> 27408 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/index.md12
-rw-r--r--source/know/concept/optical-wave-breaking/pheno-break-inst-small.jpgbin38886 -> 0 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/pheno-break-inst.jpgbin107870 -> 0 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/pheno-break-sgram-small.jpgbin173644 -> 0 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/pheno-break-sgram.jpgbin518792 -> 0 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/pheno-break-small.jpgbin71450 -> 0 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/pheno-break.jpgbin242935 -> 0 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/simulation-full.pngbin0 -> 918927 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/simulation-half.avifbin0 -> 23637 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/simulation-half.jpgbin0 -> 119045 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/simulation-half.pngbin0 -> 232905 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/simulation-half.webpbin0 -> 52558 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/spectrograms-full.pngbin0 -> 1037864 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/spectrograms-half.avifbin0 -> 63914 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/spectrograms-half.jpgbin0 -> 254826 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/spectrograms-half.pngbin0 -> 379410 bytes
-rw-r--r--source/know/concept/optical-wave-breaking/spectrograms-half.webpbin0 -> 132252 bytes
-rw-r--r--source/know/concept/quantum-fourier-transform/index.md8
-rw-r--r--source/know/concept/quantum-fourier-transform/qft-circuit-noswap.avifbin0 -> 6964 bytes
-rw-r--r--source/know/concept/quantum-fourier-transform/qft-circuit-swap.avifbin0 -> 7256 bytes
-rw-r--r--source/know/concept/quantum-gate/cnot.avifbin0 -> 1190 bytes
-rw-r--r--source/know/concept/quantum-gate/cu.avifbin0 -> 1213 bytes
-rw-r--r--source/know/concept/quantum-gate/index.md14
-rw-r--r--source/know/concept/quantum-gate/swap.avifbin0 -> 1166 bytes
-rw-r--r--source/know/concept/random-phase-approximation/dyson.avifbin0 -> 3017 bytes
-rw-r--r--source/know/concept/random-phase-approximation/index.md16
-rw-r--r--source/know/concept/random-phase-approximation/interaction.avifbin0 -> 4946 bytes
-rw-r--r--source/know/concept/random-phase-approximation/interaction.png (renamed from source/know/concept/random-phase-approximation/screened.png)bin7338 -> 7338 bytes
-rw-r--r--source/know/concept/random-phase-approximation/pairbubble.avifbin0 -> 3558 bytes
-rw-r--r--source/know/concept/random-phase-approximation/self-energy.avifbin0 -> 7165 bytes
-rw-r--r--source/know/concept/random-phase-approximation/self-energy.png (renamed from source/know/concept/random-phase-approximation/rpasigma.png)bin10310 -> 10310 bytes
-rw-r--r--source/know/concept/repetition-code/bit-flip-detect.avifbin0 -> 4353 bytes
-rw-r--r--source/know/concept/repetition-code/bit-flip-encode.avifbin0 -> 2298 bytes
-rw-r--r--source/know/concept/repetition-code/index.md103
-rw-r--r--source/know/concept/repetition-code/phase-flip-detect.avifbin0 -> 5468 bytes
-rw-r--r--source/know/concept/repetition-code/phase-flip-encode.avifbin0 -> 2788 bytes
-rw-r--r--source/know/concept/repetition-code/shor-code-encode.avifbin0 -> 4738 bytes
-rw-r--r--source/know/concept/rutherford-scattering/index.md8
-rw-r--r--source/know/concept/rutherford-scattering/one-body-full.pngbin0 -> 41368 bytes
-rw-r--r--source/know/concept/rutherford-scattering/one-body-half.avifbin0 -> 6583 bytes
-rw-r--r--source/know/concept/rutherford-scattering/one-body-half.jpgbin0 -> 28441 bytes
-rw-r--r--source/know/concept/rutherford-scattering/one-body-half.pngbin0 -> 25563 bytes
-rw-r--r--source/know/concept/rutherford-scattering/one-body-half.webpbin0 -> 13456 bytes
-rw-r--r--source/know/concept/rutherford-scattering/one-body.pngbin23646 -> 0 bytes
-rw-r--r--source/know/concept/rutherford-scattering/two-body-full.pngbin0 -> 26122 bytes
-rw-r--r--source/know/concept/rutherford-scattering/two-body-half.avifbin0 -> 4053 bytes
-rw-r--r--source/know/concept/rutherford-scattering/two-body-half.jpgbin0 -> 16968 bytes
-rw-r--r--source/know/concept/rutherford-scattering/two-body-half.png (renamed from source/know/concept/rutherford-scattering/two-body.png)bin15703 -> 15703 bytes
-rw-r--r--source/know/concept/rutherford-scattering/two-body-half.webpbin0 -> 8634 bytes
-rw-r--r--source/know/concept/self-energy/definition.avifbin0 -> 6419 bytes
-rw-r--r--source/know/concept/self-energy/definition.png (renamed from source/know/concept/self-energy/selfenergy.png)bin10213 -> 10213 bytes
-rw-r--r--source/know/concept/self-energy/dyson.avifbin0 -> 4139 bytes
-rw-r--r--source/know/concept/self-energy/expansion.avifbin0 -> 4344 bytes
-rw-r--r--source/know/concept/self-energy/expansion.png (renamed from source/know/concept/self-energy/fullgf.png)bin6127 -> 6127 bytes
-rw-r--r--source/know/concept/self-energy/index.md12
-rw-r--r--source/know/concept/self-phase-modulation/index.md4
-rw-r--r--source/know/concept/self-phase-modulation/pheno-spm-small.jpgbin121984 -> 0 bytes
-rw-r--r--source/know/concept/self-phase-modulation/pheno-spm.jpgbin395877 -> 0 bytes
-rw-r--r--source/know/concept/self-phase-modulation/simulation-full.pngbin0 -> 967896 bytes
-rw-r--r--source/know/concept/self-phase-modulation/simulation-half.avifbin0 -> 44659 bytes
-rw-r--r--source/know/concept/self-phase-modulation/simulation-half.jpgbin0 -> 190616 bytes
-rw-r--r--source/know/concept/self-phase-modulation/simulation-half.pngbin0 -> 319610 bytes
-rw-r--r--source/know/concept/self-phase-modulation/simulation-half.webpbin0 -> 98592 bytes
-rw-r--r--source/know/concept/self-steepening/index.md4
-rw-r--r--source/know/concept/self-steepening/pheno-steep-small.jpgbin91324 -> 0 bytes
-rw-r--r--source/know/concept/self-steepening/pheno-steep.jpgbin327309 -> 0 bytes
-rw-r--r--source/know/concept/self-steepening/simulation-full.pngbin0 -> 772164 bytes
-rw-r--r--source/know/concept/self-steepening/simulation-half.avifbin0 -> 35962 bytes
-rw-r--r--source/know/concept/self-steepening/simulation-half.jpgbin0 -> 141764 bytes
-rw-r--r--source/know/concept/self-steepening/simulation-half.pngbin0 -> 235123 bytes
-rw-r--r--source/know/concept/self-steepening/simulation-half.webpbin0 -> 69112 bytes
-rw-r--r--source/know/concept/shors-algorithm/index.md5
-rw-r--r--source/know/concept/shors-algorithm/shors-circuit.avifbin0 -> 6076 bytes
-rw-r--r--source/know/concept/simons-algorithm/index.md5
-rw-r--r--source/know/concept/simons-algorithm/simons-circuit.avifbin0 -> 4866 bytes
-rw-r--r--source/know/concept/step-index-fiber/bessel-full.pngbin0 -> 268605 bytes
-rw-r--r--source/know/concept/step-index-fiber/bessel-half.avifbin0 -> 39565 bytes
-rw-r--r--source/know/concept/step-index-fiber/bessel-half.jpgbin0 -> 161650 bytes
-rw-r--r--source/know/concept/step-index-fiber/bessel-half.pngbin0 -> 173668 bytes
-rw-r--r--source/know/concept/step-index-fiber/bessel-half.webpbin0 -> 84668 bytes
-rw-r--r--source/know/concept/step-index-fiber/bessel-small.jpgbin145251 -> 0 bytes
-rw-r--r--source/know/concept/step-index-fiber/bessel.jpgbin315522 -> 0 bytes
-rw-r--r--source/know/concept/step-index-fiber/index.md10
-rw-r--r--source/know/concept/step-index-fiber/modes-small.jpgbin91467 -> 0 bytes
-rw-r--r--source/know/concept/step-index-fiber/modes.jpgbin194481 -> 0 bytes
-rw-r--r--source/know/concept/step-index-fiber/transcendental-full.pngbin0 -> 122957 bytes
-rw-r--r--source/know/concept/step-index-fiber/transcendental-half.avifbin0 -> 21001 bytes
-rw-r--r--source/know/concept/step-index-fiber/transcendental-half.jpgbin0 -> 105585 bytes
-rw-r--r--source/know/concept/step-index-fiber/transcendental-half.pngbin0 -> 88945 bytes
-rw-r--r--source/know/concept/step-index-fiber/transcendental-half.webpbin0 -> 49492 bytes
-rw-r--r--source/know/concept/toffoli-gate/and.avifbin0 -> 2109 bytes
-rw-r--r--source/know/concept/toffoli-gate/index.md24
-rw-r--r--source/know/concept/toffoli-gate/nand.avifbin0 -> 1834 bytes
-rw-r--r--source/know/concept/toffoli-gate/not.avifbin0 -> 1518 bytes
-rw-r--r--source/know/concept/toffoli-gate/or.avifbin0 -> 3505 bytes
-rw-r--r--source/know/concept/toffoli-gate/toffoli.avifbin0 -> 1261 bytes
-rw-r--r--source/know/concept/toffoli-gate/xor.avifbin0 -> 2128 bytes
157 files changed, 151 insertions, 169 deletions
diff --git a/source/_includes/image.html b/source/_includes/image.html
new file mode 100644
index 0000000..a9bc3fd
--- /dev/null
+++ b/source/_includes/image.html
@@ -0,0 +1,34 @@
+{% assign name_dot_format = include.file | split: "." %}
+{% assign name = name_dot_format | first %}
+{% assign format = name_dot_format | last %}
+
+{% comment %} Let 'suffix' = last 4 chars of 'name', 'prefix' = the rest {% endcomment %}
+{% assign suffix = name | slice: -4, 4 %}
+{% assign rname = name | split: "" | reverse | join: "" %}
+{% assign rsuffix = suffix | split: "" | reverse | join: "" %}
+{% assign rprefix = rname | remove_first: rsuffix %}
+{% assign prefix = rprefix | split: "" | reverse | join: "" %}
+
+{% comment %} If 'name' ends in "full", half-size image must exist {% endcomment %}
+{% assign name_full = name %}
+{% if suffix == "full" %}
+ {% assign name_half = prefix | append: "half" %}
+{% else %}
+ {% assign name_half = name_full %}
+{% endif %}
+
+{% comment %} Insert the image, linking to the full-size version {% endcomment %}
+<p>
+<a href="{{ name_full }}.{{ format }}">
+ {% assign set_width = "width:" | append: include.width %}
+ <picture markdown="0">
+ <source srcset="{{ name_half }}.avif" type="image/avif">
+ {% if name_full == name_half %}
+ <img src="{{ name_half }}.{{ format }}" style="{{ include.style | default: set_width }}" alt="{{ include.alt }}" title="{{ include.alt }}">
+ {% else %}
+ <source srcset="{{ name_half }}.webp" type="image/webp">
+ <img src="{{ name_half }}.jpg" style="{{ include.style | default: set_width }}" alt="{{ include.alt }}" title="{{ include.alt }}">
+ {% endif %}
+ </picture>
+</a>
+</p>
diff --git a/source/know/concept/bernstein-vazirani-algorithm/bernstein-vazirani-circuit.avif b/source/know/concept/bernstein-vazirani-algorithm/bernstein-vazirani-circuit.avif
new file mode 100644
index 0000000..7bfd114
--- /dev/null
+++ b/source/know/concept/bernstein-vazirani-algorithm/bernstein-vazirani-circuit.avif
Binary files differ
diff --git a/source/know/concept/bernstein-vazirani-algorithm/index.md b/source/know/concept/bernstein-vazirani-algorithm/index.md
index f91c0ba..85017dc 100644
--- a/source/know/concept/bernstein-vazirani-algorithm/index.md
+++ b/source/know/concept/bernstein-vazirani-algorithm/index.md
@@ -36,9 +36,7 @@ However, the Bernstein-Vazirani algorithm
allows a quantum computer to do it with only a single query.
It uses the following circuit:
-<a href="bernstein-vazirani-circuit.png">
-<img src="bernstein-vazirani-circuit.png" style="width:52%">
-</a>
+{% include image.html file="bernstein-vazirani-circuit.png" width="52%" alt="Bernstein-Vazirani circuit" %}
Where $$U_f$$ is a phase oracle,
whose action is defined as follows,
diff --git a/source/know/concept/bloch-sphere/bloch-small.jpg b/source/know/concept/bloch-sphere/bloch-small.jpg
deleted file mode 100644
index e99c0e1..0000000
--- a/source/know/concept/bloch-sphere/bloch-small.jpg
+++ /dev/null
Binary files differ
diff --git a/source/know/concept/bloch-sphere/bloch.jpg b/source/know/concept/bloch-sphere/bloch.jpg
deleted file mode 100644
index 9515d84..0000000
--- a/source/know/concept/bloch-sphere/bloch.jpg
+++ /dev/null
Binary files differ
diff --git a/source/know/concept/bloch-sphere/index.md b/source/know/concept/bloch-sphere/index.md
index 2cb7742..0ca6f1b 100644
--- a/source/know/concept/bloch-sphere/index.md
+++ b/