请问这种图怎么画出来

发布于 2025-07-02 19:20:46
关注者
0
被浏览
121
1 个回答
Sagittarius Rover
Sagittarius Rover 21小时前
我要成为Typst糕手/(ㄒoㄒ)/~~
请问这种图怎么画出来

建议看一下tikz宏包,其中的入门内容可以比较方便地画出上图的大致轮廓。

本论坛「应该」不是一个「do-this-for-me」的平台,请尽量阅读上面的文档,使用「编辑问题」功能给一份你的尝试的代码。这样既有利于自己的能力提高,也能让论坛的uu能更有针对性地帮到你。


效果也许是这样,但「在你给出你的尝试之后我再贴代码叭😀」

image.png

围栏代码块的效果多赏心悦目

\documentclass[tikz,border=1cm]{standalone}
\usepackage{physics2}
\usephysicsmodule{ab.braket}
\begin{document}
\begin{tikzpicture}
  \draw (0,.5) 
    node[rectangle,anchor=east] {Meter} 
    edge node[above] {$\rho$} 
    ++(1,0) -- ++(5,0);%
  \draw (0,-.5) 
    node[rectangle,anchor=east] {System} 
    edge node[below] {$\ket|\Phi>$} 
    ++(1,0) -- ++(5,0);%
  \node[draw,thick,fill=white,rectangle,minimum size=1.75cm,font=\Huge] at (2,0) {$\hat{u}$};
  \draw (4,.5) 
    node[circle,fill,inner sep=1pt] {} -- (4,-.5) 
    node[draw,thick,fill=white,rectangle,minimum size=.5cm] {} 
    node[below=.25cm] {$\Big\{\ket|\Phi>,\ket|\Phi^\perp>\Big\}$};
\end{tikzpicture}
\end{document}

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览