2025-11-16 | computer-science | #quantum-computing #tutorial #algorithm

2025-11-16 | computer-science | #quantum-computing #physics

2025-11-16 | computer-science | #quantum-computing #qubit #bloch-sphere #visualization
在量子计算的宏伟殿堂中,理解单个量子比特(qubit)的状态是入门的第一步。然而,量子状态的抽象性常常令人望而生畏。幸运的是,物理学家和数学家为我们提供了一个优美的可视化工具——布洛赫球(Bloch Sphere)。本文将专注于布洛赫球的几何图像,帮助你直观地理解单个量子比特的世界。
2025-11-16 | computer-science · physics | #quantum-computing #entanglement #bell-inequality #local-realism #physics
阿尔伯特·爱因斯坦是量子力学的奠基人之一,但他对这个理论的完备性始终持怀疑态度。尤其是量子纠缠(Quantum Entanglement)现象,让他感到极度不安,并将其讽刺为“幽灵般的超距作用”(spooky action at a distance)。
2025-11-16 | computer-science · physics | #quantum-computing #interference #paths #intuition
如果你已经读过前面的几篇:
2025-11-16 | computer-science · physics | #quantum-computing #interference #phase #analogy
在讲量子计算、布洛赫球或纠缠时,“相位(phase)”和“干涉(interference)”这两个词总是反复出现:
2025-11-15 | cryptography · security | #pqc #quantum-computing #cryptography

2025-11-15 | #org-mode #markup #cheatsheet #productivity
Org Mode 富文本标记、结构、表格与 Babel 功能的速查清单,涵盖常见语法与导出注意事项。
2025-11-15 | cryptography · security | #Cryptography #FHE #Security
在数据为王的时代,数据隐私和安全变得至关重要。我们希望在利用数据带来价值的同时,保护其不被泄露。传统的数据加密技术(如 AES、RSA)可以有效地保护静态存储和传输中的数据,但一旦需要对数据进行计算或处理,就必须先解密。解密后的数据以明文形式暴露在内存中,极易受到攻击,这在云计算等第三方计算环境中构成了巨大的安全风险。
2025-11-13 | algorithms | #simd #sse2 #avx2 #avx-512 #string-algorithms #performance-optimization #vectorization #intrinsics #strchr #strstr #parallel-computing
面向工程实践的SIMD字符串查找优化完全指南:SSE2/AVX2/AVX-512并行比较原理,位掩码技巧,跨块与页边界安全处理,strchr/strstr高性能实现,包含完整代码示例和性能陷阱分析
2025-11-13 | system-design | #c10k #c10m #high-concurrency #epoll #io_uring #event-driven #reactor #proactor #dpdk #network-programming #performance-optimization
深度解析C10K到C10M问题的演进,涵盖从select/poll到epoll、io_uring的I/O模型变革,Reactor与Proactor模式的实现,事件驱动架构,内核旁路技术(DPDK),以及Go/Erlang的M:N调度模型,全面剖析现代高并发网络编程的理论本质与工程实践。
2025-11-13
本文旨在为您梳理 CAP 定理从一个流行的口号到其在真实工程世界中扮演的角色的全过程,澄清常见的误解:
2025-11-11 | system-design | #consistent-hashing #distributed-systems #probability #load-balancing
深入探讨一致性哈希在实际应用中的溢出概率问题,通过交互式可视化展示为什么集群容量规划比你想象的更复杂
2025-11-11 | linux | #linux #sysadmin #server-configuration #devops #sre
Linux 服务器初始化最佳实践:系统配置、安全加固与运维自动化
2025-10-30 | programming | #C #bit-manipulation #performance-optimization #low-level-programming #tricks
C 语言位运算技巧大全:常用位操作技巧,提升代码性能的底层优化方法
2025-10-30 | programming | #C #macros #preprocessor #C-programming #best-practices
C 语言宏的最佳实践:正确使用预处理器宏,避免常见陷阱,提高代码质量
2025-10-30 | programming | #C #linked-list #data-structures #debugging #code-review
链表节点删除的优雅实现与常见错误:一个真实案例的调试经历与经验总结
2025-10-30 | programming | #C++ #template-metaprogramming #mpl #type-safety #dimensional-analysis
C++ 模板元编程实战:使用 MPL 实现物理量纲检查,编译期类型安全保证
2025-10-30 | programming | #C++ #template-metaprogramming #mpl #stl #generic-programming
C++ 泛型编程深入:从 swap 函数实现理解模板元编程和 STL 设计思想
2025-10-30 | programming | #C++ #lambda #functional-programming #closures #modern-cpp
深入理解 C++ Lambda 表达式:原理、语法、闭包机制及最佳实践指南
2025-10-30 | programming | #C #C++ #interoperability #mixed-programming #linkage
C 和 C++ 混合编程指南:如何正确混编 C 和 C++ 代码,extern "C" 详解
2025-10-30 | programming | #C++ #templates #typename #template-syntax #generic-programming
C++ typename 和 template 关键字详解:在模板编程中的正确使用方式
2025-10-30 | algorithms | #data-structures #algorithms #persistent-data-structures #functional-programming #version-control
持久化数据结构原理与实现:探索 undo/redo、MVCC、Git 等系统背后的数据结构设计模式
2025-10-30 | algorithms | #algorithms #binary-search #search-algorithms #data-structures #C
二分查找算法详解:原理、实现、变种及常见错误分析,O(log n) 时间复杂度的高效搜索算法
2025-10-30 | algorithms | #algorithms #heavy-hitters #streaming-algorithms #data-mining #big-data
Heavy Hitters 算法:如何高效计算高频数据项,在流式数据处理和热门页面统计中的应用
2025-10-30 | algorithms | #algorithms #string-matching #kmp #boyer-moore #pattern-matching
字符串匹配算法深度解析:KMP 和 Boyer-Moore 算法原理、实现与性能对比
2025-10-30 | algorithms | #regex #regular-expressions #pattern-matching #automata #compiler
正则表达式原理与实现:从理论到实践,深入理解正则表达式引擎的工作机制
2025-10-30 | cryptography | #cryptography #aes #cbc #security #attack
CBC 加密模式安全分析:常见攻击方式、漏洞原理及安全实践建议
2025-10-30 | cryptography | #cryptography #one-time-pad #xor #encryption #information-security
一次一密加密算法详解:理论上最安全的加密方式,原理、应用及正确使用方法
2025-10-30 | database | #database #sql #normalization #relational-database #database-design
关系数据库范式详解:第一、第二、第三范式原理与数据库设计最佳实践
2025-10-30 | database | #database #leveldb #cache #lru #data-structures
LevelDB 缓存实现解析:LRU 算法在 Key-Value 数据库中的应用与优化
2025-10-30 | database | #database #leveldb #nosql #key-value-store #google
LevelDB 使用指南:Google 开发的高性能 Key-Value 数据库实践教程
2025-10-30 | database | #high-availability #database-replication #mariadb #fault-tolerance #disaster-recovery
数据库高可用实践:通过冗余实现 MariaDB 高可用,MTTF/MTTR 分析与实战
2025-10-30 | design-patterns | #design-patterns #command-pattern #software-architecture #oop #gof
命令模式详解:请求封装、队列、日志与撤销/恢复功能的设计模式实现
2025-10-30 | tools | #documentation #doxygen #latex #C #code-documentation
Doxygen 中文文档生成配置:LaTeX 设置与 C/C++ 项目文档自动化
2025-10-30 | garbage-collection | #garbage-collection #memory-management #compaction #gc-algorithms
内存整理算法详解:原地内存碎片整理,解决堆内存碎片化问题的 GC 技术
2025-10-30 | golang | #golang #concurrency #goroutine #thread-pool #performance
Golang 线程池实现:高效并发编程,goroutine 池管理与性能优化
2025-10-30 | networking | #networking #libevent #multithreading #event-driven #epoll
多线程 Libevent 编程实践:异步网络 IO、事件驱动架构与跨平台开发
2025-10-30 | kubernetes | #kubernetes #k8s #high-availability #helm #istio #devops
Kubernetes 实战笔记:高可用集群部署、Helm 包管理与 Istio 服务网格实践
2025-10-30 | networking | #libevent #buffer #evbuffer #networking #C
Libevent 源码分析:evbuffer 数据缓冲结构设计与实现原理
2025-10-30 | linux | #linux #kernel #concurrency #memory-ordering #C-macros
Linux 内核 ACCESS_ONCE/READ_ONCE/WRITE_ONCE 宏详解:并发编程与内存访问
2025-10-30 | linux | #linux #daemon #process #background-service #system-programming
Linux Daemon 进程创建指南:后台服务开发规范与最佳实践
2025-10-30 | linux | #linux #file-io #system-calls #kernel #file-system
Linux 文件 I/O 深度解析:内核文件表、系统调用与文件描述符管理
2025-10-30 | networking | #networking #tcp #syn #linux #performance-tuning
TCP SYN 处理详解:三次握手、SYN Flood 防护与网络性能优化
2025-10-30 | networking | #tcp #tcp-timestamp #networking #linux #sysctl
为什么要关闭 TCP Timestamp:网络性能优化与安全考虑
2025-10-30 | linux | #linux #memory-management #virtual-memory #process #memory-layout
程序内存布局详解:虚拟内存、栈、堆、代码段、数据段的组织结构
2025-10-30 | database | #redis #source-code #in-memory-database #nosql #data-structures
Redis 源码分析:高性能内存数据库的设计与实现,原子操作与数据结构
2025-10-30 | linux | #linux #scheduler #process-scheduling #kernel #performance
Linux 进程调度详解:调度类、优先级与实时任务调度机制
2025-10-30 | linux | #linux #process #task-state #kernel #system-programming
Linux 进程状态详解:运行、睡眠、僵尸等 7 种进程状态分析
2025-10-30 | computer-science | #performance #parallel-computing #amdahl-law #optimization #scalability
Amdahl 定律详解:并行计算性能提升的理论极限与实践指导
2025-10-30 | security | #security #linux #privilege-escalation #penetration-testing #vulnerabilities
Linux 提权技术详解:权限提升原理、常见漏洞利用方法与防护措施
2025-10-30 | security | #security #password #hashing #cryptography #authentication
密码安全存储最佳实践:哈希算法、加盐、bcrypt/scrypt/Argon2 使用指南
2025-10-30 | security | #security #xss #web-security #penetration-testing #owasp
XSS 跨站脚本攻击实战:攻击原理、防御方法与安全编码最佳实践
2025-10-30 | shell | #shell #bash #scripting #command-line #getopts
Shell 脚本命令行参数解析:getopts 使用指南与最佳实践
2025-10-30 | shell | #shell #bash #scripting #linux #productivity
Shell 脚本实用技巧集合:提高命令行效率的实用代码片段
2025-10-30 | system-design | #distributed-systems #consistent-hashing #load-balancing #scalability #algorithms
一致性哈希算法原理与应用:分布式系统负载均衡与数据分片的核心技术
2025-10-30 | system-design | #rate-limiting #system-design #api-gateway #traffic-control #algorithms
限流器设计与实现:令牌桶、漏桶算法及分布式限流方案
2025-10-30 | system-design | #system-design #scalability #architecture #microservices #distributed-systems
服务架构演化实践:从单体到微服务,系统扩展性设计与优化历程
2025-10-30 | authentication | #jwt #authentication #web-security #oauth #token
JWT 完全指南:JSON Web Token 原理、安全陷阱与最佳实践建议
2025-10-30 | authentication | #oauth2 #authentication #authorization #sso #web-security
OAuth2 授权协议详解:单点登录、第三方授权的实现原理与实战案例
2025-10-30 | authentication | #pkce #oauth2 #security #authentication #web-security
PKCE 安全增强详解:OAuth2 授权码流程的安全加固方案