test
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| test [August 16, 2026 at 16:48] – Ivan Janevski | test [August 17, 2026 at 17:49] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Can I use ket | + | \documentclass[tikz, |
| - | $$\lvert\psi\rangle\langle\psi\lvert\\ \ket{\psi}\bra{\psi}$$ | + | |
| + | \usepackage{amsmath} | ||
| + | \usepackage{circuitikz} | ||
| + | \usetikzlibrary{ | ||
| + | calc, | ||
| + | arrows.meta, | ||
| + | decorations.pathmorphing | ||
| + | } | ||
| - | \documentclass[border=5pt]{standalone} | ||
| - | \usepackage{tikz} | ||
| - | \usetikzlibrary{arrows.meta, | ||
| \begin{document} | \begin{document} | ||
| - | \begin{tikzpicture}[node distance=18mm,> | ||
| - | \node[draw, | ||
| - | \node[draw, | ||
| - | \node[draw, | ||
| - | \draw[->, | ||
| - | \draw[->, | ||
| - | \draw[->, | ||
| - | \end{tikzpicture} | ||
| - | \end{document} | ||
| + | \begin{circuitikz}[ | ||
| + | line width=1.35pt, | ||
| + | line cap=round, | ||
| + | line join=round, | ||
| + | >=Latex, | ||
| + | font=\Large | ||
| + | ] | ||
| - | \documentclass[border=5pt]{standalone} | + | % ============================================================ |
| - | \usepackage{tikz} | + | % Resistor style |
| - | \begin{document} | + | % ============================================================ |
| - | \begin{tikzpicture}[opacity=0.55,text opacity=1] | + | |
| - | \fill[red!70] | + | |
| - | \fill[green!70] (210:0.9) circle (1.5); | + | |
| - | \fill[blue!70] | + | |
| - | \node at ( 90:1.7) {$A$}; | + | |
| - | \node at (210:1.7) {$B$}; | + | |
| - | \node at (330:1.7) {$C$}; | + | |
| - | \node[opacity=1] at (0,0) {\small $A\cap B\cap C$}; | + | |
| - | \end{tikzpicture} | + | |
| - | \end{document} | + | |
| + | \tikzset{ | ||
| + | resistor/ | ||
| + | decorate, | ||
| + | decoration={ | ||
| + | zigzag, | ||
| + | segment length=8.0pt, | ||
| + | amplitude=5.2pt | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | |||
| + | % ============================================================ | ||
| + | % Main geometry | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (C) at ( 0.00, 0.00); | ||
| + | |||
| + | \coordinate (L) at (-4.40, 0.00); | ||
| + | \coordinate (TL) at (-2.10, 3.80); | ||
| + | \coordinate (TR) at ( 2.22, 3.80); | ||
| + | \coordinate (R) at ( 4.40, 0.00); | ||
| + | \coordinate (BR) at ( 2.26, | ||
| + | \coordinate (BL) at (-2.28, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Outer upper-left branch | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (UL1) at ($(L)!0.25!(TL)$); | ||
| + | \coordinate (UL2) at ($(L)!0.67!(TL)$); | ||
| + | |||
| + | \draw (L) -- (UL1); | ||
| + | \draw[resistor] (UL1) -- (UL2); | ||
| + | \draw (UL2) -- (TL); | ||
| + | |||
| + | \node at (-3.79, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Top branch: Ig1 + R | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (Ig1) at (-0.91, | ||
| + | |||
| + | \draw | ||
| + | (TL) | ||
| + | -- | ||
| + | ($(Ig1)+(-0.62, | ||
| + | |||
| + | \draw | ||
| + | (Ig1) | ||
| + | circle[radius=0.62]; | ||
| + | |||
| + | \draw[-{Latex[length=8pt, | ||
| + | ($(Ig1)+(0.30, | ||
| + | -- | ||
| + | ($(Ig1)+(-0.31, | ||
| + | |||
| + | \draw | ||
| + | ($(Ig1)+(0.62, | ||
| + | -- | ||
| + | (0.04, | ||
| + | |||
| + | \draw[resistor] | ||
| + | (0.04,3.80) | ||
| + | -- | ||
| + | (1.14, | ||
| + | |||
| + | \draw | ||
| + | (1.14,3.80) | ||
| + | -- | ||
| + | (TR); | ||
| + | |||
| + | \node at (-0.91, | ||
| + | \node at (0.59,4.36) {$R$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Outer upper-right branch | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (UR1) at ($(TR)!0.25!(R)$); | ||
| + | \coordinate (UR2) at ($(TR)!0.67!(R)$); | ||
| + | |||
| + | \draw (TR) -- (UR1); | ||
| + | \draw[resistor] (UR1) -- (UR2); | ||
| + | \draw (UR2) -- (R); | ||
| + | |||
| + | \node at (3.75,1.88) {$R$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Outer lower-right branch | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (LR1) at ($(R)!0.26!(BR)$); | ||
| + | \coordinate (LR2) at ($(R)!0.67!(BR)$); | ||
| + | |||
| + | \draw (R) -- (LR1); | ||
| + | \draw[resistor] (LR1) -- (LR2); | ||
| + | \draw (LR2) -- (BR); | ||
| + | |||
| + | \node at (3.72, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Bottom branch: E3 + R | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (E3) at (-1.01, | ||
| + | |||
| + | \draw | ||
| + | (BL) | ||
| + | -- | ||
| + | ($(E3)+(-0.62, | ||
| + | |||
| + | \draw | ||
| + | (E3) | ||
| + | circle[radius=0.62]; | ||
| + | |||
| + | \draw | ||
| + | ($(E3)+(0.62, | ||
| + | -- | ||
| + | (0.02, | ||
| + | |||
| + | \draw[resistor] | ||
| + | (0.02, | ||
| + | -- | ||
| + | (1.15, | ||
| + | |||
| + | \draw | ||
| + | (1.15, | ||
| + | -- | ||
| + | (BR); | ||
| + | |||
| + | \node at (-1.23, | ||
| + | \node at (-1.00, | ||
| + | \node at (0.59, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Outer lower-left branch: E2 + R | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (E2) at (-3.70, | ||
| + | |||
| + | \draw | ||
| + | (L) | ||
| + | -- | ||
| + | ($(E2)!0.62cm!(L)$); | ||
| + | |||
| + | \draw | ||
| + | (E2) | ||
| + | circle[radius=0.62]; | ||
| + | |||
| + | \coordinate (E2out) | ||
| + | at ($(E2)!0.62cm!(BL)$); | ||
| + | |||
| + | \coordinate (LL1) | ||
| + | at ($(E2out)!0.28!(BL)$); | ||
| + | |||
| + | \coordinate (LL2) | ||
| + | at ($(E2out)!0.70!(BL)$); | ||
| + | |||
| + | \draw | ||
| + | (E2out) | ||
| + | -- | ||
| + | (LL1); | ||
| + | |||
| + | \draw[resistor] | ||
| + | (LL1) | ||
| + | -- | ||
| + | (LL2); | ||
| + | |||
| + | \draw | ||
| + | (LL2) | ||
| + | -- | ||
| + | (BL); | ||
| + | |||
| + | \node at (-4.76, | ||
| + | \node at (-4.80, | ||
| + | \node at (-3.67, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Horizontal branch: Ig2 | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (Ig2) at (-2.05,0); | ||
| + | |||
| + | \draw | ||
| + | (L) | ||
| + | -- | ||
| + | ($(Ig2)+(-0.62, | ||
| + | |||
| + | \draw | ||
| + | (Ig2) | ||
| + | circle[radius=0.62]; | ||
| + | |||
| + | \draw[-{Latex[length=8pt, | ||
| + | ($(Ig2)+(-0.30, | ||
| + | -- | ||
| + | ($(Ig2)+(0.31, | ||
| + | |||
| + | \draw | ||
| + | ($(Ig2)+(0.62, | ||
| + | -- | ||
| + | (C); | ||
| + | |||
| + | \node at (-2.06, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Horizontal branch: Ig3 | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (Ig3) at (2.07,0); | ||
| + | |||
| + | \draw | ||
| + | (C) | ||
| + | -- | ||
| + | ($(Ig3)+(-0.62, | ||
| + | |||
| + | \draw | ||
| + | (Ig3) | ||
| + | circle[radius=0.62]; | ||
| + | |||
| + | \draw[-{Latex[length=8pt, | ||
| + | ($(Ig3)+(-0.30, | ||
| + | -- | ||
| + | ($(Ig3)+(0.31, | ||
| + | |||
| + | \draw | ||
| + | ($(Ig3)+(0.62, | ||
| + | -- | ||
| + | (R); | ||
| + | |||
| + | \node at (2.08,1.10) {$I_{g3}$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Internal upper-left resistor | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (IUL1) | ||
| + | at ($(TL)!0.27!(C)$); | ||
| + | |||
| + | \coordinate (IUL2) | ||
| + | at ($(TL)!0.66!(C)$); | ||
| + | |||
| + | \draw | ||
| + | (TL) | ||
| + | -- | ||
| + | (IUL1); | ||
| + | |||
| + | \draw[resistor] | ||
| + | (IUL1) | ||
| + | -- | ||
| + | (IUL2); | ||
| + | |||
| + | \draw | ||
| + | (IUL2) | ||
| + | -- | ||
| + | (C); | ||
| + | |||
| + | \node at (-1.36, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Internal lower-left resistor | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (ILL1) | ||
| + | at ($(C)!0.31!(BL)$); | ||
| + | |||
| + | \coordinate (ILL2) | ||
| + | at ($(C)!0.68!(BL)$); | ||
| + | |||
| + | \draw | ||
| + | (C) | ||
| + | -- | ||
| + | (ILL1); | ||
| + | |||
| + | \draw[resistor] | ||
| + | (ILL1) | ||
| + | -- | ||
| + | (ILL2); | ||
| + | |||
| + | \draw | ||
| + | (ILL2) | ||
| + | -- | ||
| + | (BL); | ||
| + | |||
| + | \node at (-1.33, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Internal upper-right source E1 | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (E1) at (1.20, | ||
| + | |||
| + | \draw | ||
| + | (C) | ||
| + | -- | ||
| + | ($(E1)!0.62cm!(C)$); | ||
| + | |||
| + | \draw | ||
| + | (E1) | ||
| + | circle[radius=0.62]; | ||
| + | |||
| + | \draw | ||
| + | ($(E1)!0.62cm!(TR)$) | ||
| + | -- | ||
| + | (TR); | ||
| + | |||
| + | \node at (0.83,2.97) {$E_1$}; | ||
| + | \node[rotate=-31] at (0.87,3.31) {$+$}; | ||
| + | |||
| + | % ============================================================ | ||
| + | % Internal lower-right source E4 | ||
| + | % ============================================================ | ||
| + | |||
| + | \coordinate (E4) at (1.24, | ||
| + | |||
| + | \draw | ||
| + | (C) | ||
| + | -- | ||
| + | ($(E4)!0.62cm!(C)$); | ||
| + | |||
| + | \draw | ||
| + | (E4) | ||
| + | circle[radius=0.62]; | ||
| + | |||
| + | \draw | ||
| + | ($(E4)!0.62cm!(BR)$) | ||
| + | -- | ||
| + | (BR); | ||
| + | |||
| + | \node at (2.06, | ||
| + | \node[rotate=-31] at (2.20, | ||
| + | |||
| + | % ============================================================ | ||
| + | % Junction dots | ||
| + | % ============================================================ | ||
| + | |||
| + | \fill (L) circle[radius=4.2pt]; | ||
| + | \fill (TL) circle[radius=4.2pt]; | ||
| + | \fill (TR) circle[radius=4.2pt]; | ||
| + | \fill (R) circle[radius=4.2pt]; | ||
| + | \fill (BR) circle[radius=4.2pt]; | ||
| + | \fill (BL) circle[radius=4.2pt]; | ||
| + | \fill (C) circle[radius=4.2pt]; | ||
| + | |||
| + | \end{circuitikz} | ||
| + | |||
| + | \end{document} | ||
test.1786898904.md.gz · Last modified: by Ivan Janevski
