Programming Diary
  • Home
  • Tag
  • About
  • Weblinks
Interview: Safe Distance | 面试: 安全距离

Interview: Safe Distance | 面试: 安全距离

Problem 题面In a classroom with n seats, numbered from 0 to n-1, a student must choose the seat with the largest minimum distance to any other occupied seat. If multiple seats satisfy this condition, ch
2025-05-28
#Data Structure
LeetCode: Integer to English Words | 力扣: 整数转换英文表示

LeetCode: Integer to English Words | 力扣: 整数转换英文表示

Problem 题面https://leetcode.cn/problems/integer-to-english-words/description/ Code 代码12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626
2025-05-27
#Algorithm
Coding Test: Find the Largest Stable Number | 笔试: 寻找最大的稳定数

Coding Test: Find the Largest Stable Number | 笔试: 寻找最大的稳定数

Problem 题面Give a number $N$, find the largest number $k$ satisfy the following requirements smaller than $N$: Sum of all digits of $k$ is prime Each digits of $k$ is larger than or equals to the pre
2025-05-21
#Algorithm
How to setup and encrypt POSTEO mail service | 如何申请并加密POSTEO mail服务

How to setup and encrypt POSTEO mail service | 如何申请并加密POSTEO mail服务

Why You Need a Privacy-Focused Email Avoid Over-Centralization and Protect Your Real Identity: Most people currently use a setup consisting of a Gmail account plus a work or school email. Both are st
2025-05-21
#Security
FTQC Resource Estimator

FTQC Resource Estimator

Why We Need an FTQC Resource EstimatorOn NISQ (Noisy Intermediate-scale Quantum) devices, measuring the resource cost of an algorithm is very intuitive. By counting the number of gates the algorithm
2025-05-17
#Quantum Computing
Quantum Error Correction: Stablizer

Quantum Error Correction: Stablizer

After a simple example of Shor Code, this article will introduce stabilizer as a tool to build and analyze quantum error correction circuits. Why do we need stabilizers?One key point of quantum error
2025-05-16
#Quantum Computing
FTQC量子资源计数器

FTQC量子资源计数器

为什么需要FTQC资源计数器在NISQ(Noisy Intermediate-scale Quantum)设备上,衡量一个算法消耗的资源是非常直观的。通过算法使用的门的数量,物理比特的数量,电路的深度,物理硬件的各种错误率与保真度就可以大致的评估一个算法。但在FTQC(Fault Tolerant Quantum Computing)上事情却复杂一些。最关键的不同在于FTQC使用纠错码的方式通过设
2025-05-16
#Quantum Computing
Quantum Error Correction: Shor Code

Quantum Error Correction: Shor Code

Quantum error correction algorithms are a core technology in the field of quantum computing, designed to address the issue of quantum bits (qubits) being highly susceptible to environmental interferen
2025-05-16
#Quantum Computing
量子纠错: Shor Code

量子纠错: Shor Code

量子纠错算法是量子计算领域的核心技术之一,旨在应对量子比特(qubits)易受环境干扰导致信息丢失或出错的问题。由于量子系统的特性, 如叠加态和量子纠缠, 使得量子信息极其脆弱, 任何微小的噪声或相位偏移都可能破坏计算的准确性。量子纠错通过设计特殊的编码方案, 将一个量子比特的信息分布到多个物理量子比特上, 从而检测和纠正错误, 而不会破坏量子态。例如, 经典的量子纠错码包括肖尔码 (Shor C
2025-05-16
#Quantum Computing
Network Flow

Network Flow

1: Problem DescriptionAs stated, given a network graph with a source node and a sink node, calculate the maximum flow in the network. 1.1: Input FormatThe first line contains four positive integers: $
2025-01-02
#Algorithm
12

Suchen

Hexo Fluid
Total Visited Times Total Unique Visitors