QuantBlockchain/qcv-dataset huggingface dataset:
Lattice-inspired quantum hash circuit
格基启发的量子哈希电路
Category: blockchain_extended | Difficulty: advanced | Qubits: 6 | Depth: 7

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1).h(2)
circuit.cnot(0, 3).cnot(1, 4).cnot(2, 5)
circuit.rz(3, math.pi/4).rz(4, math.pi/3).rz(5, math.pi/5)
circuit.cnot(3, 4).cnot(4, 5).cnot(5, 3)
circuit.h(3).h(4).h(5)
Quantum bit commitment scheme
量子比特承诺方案
Category: blockchain_extended | Difficulty: advanced | Qubits: 3 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
circuit.cnot(0, 1).cnot(0, 2)
circuit.rz(0, math.pi / 4)
Entanglement witness measurement
纠缠见证测量
Category: blockchain_extended | Difficulty: advanced | Qubits: 4 | Depth: 4

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).cnot(0, 1)
circuit.h(2).cnot(2, 3)
circuit.cnot(1, 2)
circuit.h(1)
Bell state with visual barrier (same unitary)
带视觉屏障的Bell态（相同酉矩阵）
Category: visual_variants | Difficulty: basic | Qubits: 2 | Depth: 2

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0).cnot(0, 1)
Bell state in compressed visual layout
紧凑视觉布局的Bell态
Category: visual_variants | Difficulty: basic | Qubits: 2 | Depth: 2

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0).cnot(0, 1)
Bell state in wide visual layout with identity padding
带恒等填充的宽视觉布局Bell态
Category: visual_variants | Difficulty: basic | Qubits: 2 | Depth: 2

Braket code:
from braket.circuits import Circuit
# Identity gates don't change the unitary
circuit = Circuit().h(0).cnot(0, 1)
GHZ with reversed qubit labels (q2 as source)
反转量子比特标签的GHZ（q2为源）
Category: visual_variants | Difficulty: basic | Qubits: 3 | Depth: 3

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(2)
circuit.cnot(2, 1).cnot(2, 0)
Toffoli decomposed into 15 basic gates
Toffoli分解为15个基本门
Category: visual_variants | Difficulty: basic | Qubits: 3 | Depth: 11

Braket code:
from braket.circuits import Circuit
# Toffoli decomposition into 1/2-qubit gates
circuit = Circuit()
circuit.h(2)
circuit.cnot(1, 2).ti(2).cnot(0, 2)
circuit.t(2).cnot(1, 2).ti(2).cnot(0, 2)
circuit.t(1).t(2).h(2)
circuit.cnot(0, 1).t(0).ti(1).cnot(0, 1)
3-qubit QFT without final SWAP (different convention)
不含最终SWAP的3量子比特QFT
Category: visual_variants | Difficulty: basic | Qubits: 3 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
circuit.cphaseshift(1, 0, math.pi / 2)
circuit.cphaseshift(2, 0, math.pi / 4)
circuit.h(1)
circuit.cphaseshift(2, 1, math.pi / 2)
circuit.h(2)
2-qubit Grover with oracle+diffusion drawn together
Oracle和扩散合并绘制的2量子比特Grover
Category: visual_variants | Difficulty: basic | Qubits: 2 | Depth: 6

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1)
circuit.cz(0, 1)
circuit.h(0).h(1).z(0).z(1).cz(0, 1).h(0).h(1)
CNOT with reversed control/target (q1→q0)
控制/目标反转的CNOT（q1→q0）
Category: visual_variants | Difficulty: basic | Qubits: 2 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().cnot(1, 0)
Parametric circuit with non-standard angle values
具有非标准角度值的参数化电路
Category: visual_variants | Difficulty: basic | Qubits: 2 | Depth: 3

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.rx(0, 0.7)
circuit.cnot(0, 1)
circuit.ry(1, 1.2)
Multiple parallel gates at same circuit depth
同一电路深度的多个并行门
Category: visual_variants | Difficulty: basic | Qubits: 4 | Depth: 4

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1).h(2).h(3)
circuit.cnot(0, 1).cnot(2, 3)
circuit.cnot(1, 2)
circuit.h(0).h(1).h(2).h(3)
Shor's algorithm attacking elliptic curve (ECDSA threat)
Shor算法攻击椭圆曲线（ECDSA威胁）
Category: btc_quantum_security | Difficulty: advanced | Qubits: 6 | Depth: 12

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1).h(2)
circuit.x(5)
circuit.cnot(2, 3).cnot(2, 4)
circuit.ccnot(1, 3, 4).ccnot(1, 4, 5)
circuit.ccnot(0, 3, 5)
circuit.h(0).cphaseshift(1, 0, -math.pi/2).cphaseshift(2, 0, -math.pi/4)
circuit.h(1).cphaseshift(2, 1, -math.pi/2)
circuit.h(2)
circuit.swap(0, 2)
Grover oracle for SHA-256 preimage search
SHA-256前像搜索的Grover oracle
Category: btc_quantum_security | Difficulty: advanced | Qubits: 4 | Depth: 12

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1).h(2)
circuit.x(3).h(3)
circuit.x(2)
circuit.ccnot(0, 1, 3).cnot(2, 3)
circuit.x(2)
circuit.h(0).h(1).h(2)
circuit.x(0).x(1).x(2)
circuit.h(2).ccnot(0, 1, 2).h(2)
circuit.x(0).x(1).x(2)
circuit.h(0).h(1).h(2)
Grover attack on AES-128 (key search)
对AES-128的Grover攻击（密钥搜索）
Category: btc_quantum_security | Difficulty: advanced | Qubits: 5 | Depth: 12

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
for i in range(4):
    circuit.h(i)
circuit.x(4).h(4)
circuit.cnot(0, 4).cnot(1, 4).ccnot(2, 3, 4)
for i in range(4):
    circuit.h(i)
for i in range(4):
    circuit.x(i)
circuit.h(3).ccnot(0, 1, 2).cnot(2, 3).h(3)
for i in range(4):
    circuit.x(i)
for i in range(4):
    circuit.h(i)
Lamport one-time signature verification
Lamport一次性签名验证
Category: btc_quantum_security | Difficulty: advanced | Qubits: 4 | Depth: 4

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.x(0).x(2)
circuit.h(0).h(2)
circuit.cnot(0, 1).cnot(2, 3)
circuit.h(0).h(2)
Multi-party quantum random beacon for consensus
用于共识的多方量子随机信标
Category: btc_quantum_security | Difficulty: advanced | Qubits: 6 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).cnot(0, 2).cnot(0, 4)
circuit.rz(1, math.pi/3).rz(3, math.pi/5).rz(5, math.pi/7)
circuit.cnot(0, 1).cnot(2, 3).cnot(4, 5)
circuit.h(0).h(2).h(4)
3-node QKD network with entanglement swapping
带纠缠交换的3节点QKD网络
Category: btc_quantum_security | Difficulty: advanced | Qubits: 6 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).cnot(0, 1)
circuit.h(2).cnot(2, 3)
circuit.cnot(1, 2).h(1)
circuit.ry(4, math.pi/8).ry(5, math.pi/4)
circuit.cnot(0, 4).cnot(3, 5)
Quantum timestamp: unforgeable time proof
量子时间戳：不可伪造的时间证明
Category: btc_quantum_security | Difficulty: advanced | Qubits: 4 | Depth: 3

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1)
circuit.cnot(0, 2).cnot(1, 3)
circuit.rz(2, math.pi/4).rz(3, math.pi/3)
circuit.h(0).h(1)
Kyber/CRYSTALS lattice-based key encapsulation
Kyber/CRYSTALS格基密钥封装
Category: btc_quantum_security | Difficulty: advanced | Qubits: 6 | Depth: 7

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(3):
    circuit.h(i)
circuit.cnot(0, 3).rz(3, math.pi/4)
circuit.cnot(1, 4).rz(4, math.pi/3)
circuit.cnot(2, 5).rz(5, math.pi/5)
circuit.cnot(3, 4).cnot(4, 5).cnot(5, 3)
circuit.h(3).h(4).h(5)
Dilithium lattice-based signature verification
Dilithium格基签名验证
Category: btc_quantum_security | Difficulty: advanced | Qubits: 5 | Depth: 7

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1)
circuit.cnot(0, 2).cnot(1, 3)
circuit.ccnot(0, 1, 4)
circuit.rz(2, math.pi/4).rz(3, math.pi/3).rz(4, math.pi/5)
circuit.cnot(2, 4).cnot(3, 4)
circuit.h(4)
Grover speedup on proof-of-work nonce search
工作量证明随机数搜索的Grover加速
Category: btc_quantum_security | Difficulty: advanced | Qubits: 4 | Depth: 11

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
for i in range(3):
    circuit.h(i)
circuit.x(3).h(3)
circuit.ccnot(0, 1, 3).cnot(2, 3)
for i in range(3):
    circuit.h(i).x(i)
circuit.h(2).ccnot(0, 1, 2).h(2)
for i in range(3):
    circuit.x(i).h(i)
Quantum Merkle tree verification
量子Merkle树验证
Category: btc_quantum_security | Difficulty: advanced | Qubits: 5 | Depth: 6

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(2)
circuit.cnot(0, 1).cnot(2, 3)
circuit.cnot(1, 4).cnot(3, 4)
circuit.h(4)
circuit.ccnot(0, 2, 4)
SPHINCS+ hash-based signature tree
SPHINCS+基于哈希的签名树
Category: btc_quantum_security | Difficulty: advanced | Qubits: 7 | Depth: 9

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(4):
    circuit.h(i)
circuit.cnot(0, 4).cnot(1, 4).rz(4, math.pi/4)
circuit.cnot(2, 5).cnot(3, 5).rz(5, math.pi/3)
circuit.cnot(4, 6).cnot(5, 6)
circuit.h(6)
circuit.ccnot(4, 5, 6)
circuit.rz(6, math.pi/5)
3-qubit Quantum Fourier Transform
3量子比特量子傅里叶变换
Category: advanced_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit
circuit = (Circuit()
    .h(0)
    .cphaseshift(1, 0, math.pi/2)
    .cphaseshift(2, 0, math.pi/4)
    .h(1)
    .cphaseshift(2, 1, math.pi/2)
    .h(2)
    .swap(0, 2))
3-qubit Grover search (oracle marks |111⟩)
3量子比特Grover搜索（oracle标记|111⟩）
Category: advanced_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 11

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1).h(2)
circuit.h(2).ccnot(0, 1, 2).h(2)
circuit.h(0).h(1).h(2)
circuit.x(0).x(1).x(2)
circuit.h(2).ccnot(0, 1, 2).h(2)
circuit.x(0).x(1).x(2)
circuit.h(0).h(1).h(2)
VQE ansatz with Ry layers and CNOT entangling
带Ry层和CNOT纠缠的VQE拟设
Category: advanced_algorithms | Difficulty: advanced | Qubits: 4 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit
angles = [math.pi/4, math.pi/3, math.pi/6, math.pi/5]
circuit = Circuit()
for i in range(4):
    circuit.ry(i, angles[i])
for i in range(3):
    circuit.cnot(i, i + 1)
for i in range(4):
    circuit.ry(i, angles[3 - i])
QAOA single layer for MaxCut on 4-node ring
4节点环MaxCut的单层QAOA
Category: advanced_algorithms | Difficulty: advanced | Qubits: 4 | Depth: 14

Braket code:
import math
from braket.circuits import Circuit
gamma, beta = math.pi/4, math.pi/8
circuit = Circuit()
for i in range(4):
    circuit.h(i)
for i, j in [(0,1),(1,2),(2,3),(3,0)]:
    circuit.cnot(i, j).rz(j, 2*gamma).cnot(i, j)
for i in range(4):
    circuit.rx(i, 2*beta)
Quantum walk: coin + position shift
量子行走：硬币+位置移动
Category: advanced_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 4

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0).cnot(0, 1).ccnot(0, 1, 2).h(0)
Bernstein-Vazirani algorithm (s=1011)
Bernstein-Vazirani算法（s=1011）
Category: advanced_algorithms | Difficulty: advanced | Qubits: 5 | Depth: 6

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.x(4).h(4)
for i in range(4):
    circuit.h(i)
circuit.cnot(0, 4).cnot(1, 4).cnot(3, 4)
for i in range(4):
    circuit.h(i)
BB84 QKD state preparation
BB84 QKD态制备
Category: blockchain | Difficulty: advanced | Qubits: 4 | Depth: 2

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.x(0)
circuit.h(1)
circuit.x(2).h(2)
circuit.h(3)
Bernstein-Vazirani oracle for key extraction analysis
用于密钥提取分析的BV oracle
Category: blockchain | Difficulty: advanced | Qubits: 3 | Depth: 4

Braket code:
from braket.circuits import Circuit

circuit = Circuit()

circuit.h(0)
circuit.h(1)
circuit.x(2)
circuit.h(1)
circuit.h(2)
circuit.cnot(0, 2)
circuit.h(0)

print(circuit)
Quantum coin flipping protocol
量子抛硬币协议
Category: blockchain | Difficulty: advanced | Qubits: 3 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit

circuit = Circuit()

circuit.h(0)
circuit.cnot(0, 1)
circuit.rz(0, math.pi / 4)
circuit.h(1)
circuit.h(0)
circuit.cnot(0, 2)
circuit.cnot(1, 2)

print(circuit)
8-qubit validator consensus protocol
8量子比特验证者共识协议
Category: blockchain | Difficulty: advanced | Qubits: 8 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit

circuit = Circuit()

# Layer 1: H gates
circuit.h([0, 2, 4, 6])

# Layer 2: CNOT pairs
circuit.cnot(0, 1).cnot(2, 3).cnot(4, 5).cnot(6, 7)

# Layer 3: CNOT chain
circuit.cnot(1, 2).cnot(3, 4).cnot(5, 6)

# Layer 4: CNOT wrap-around
circuit.cnot(7, 0)

# Layer 5: Rz(pi/4)
circuit.rz([0, 2, 4, 6], math.pi / 4)

# Layer 6: H gates
circuit.h([0, 2, 4, 6])

print(circuit)
Grover search modeling mining threat
模拟挖矿威胁的Grover搜索
Category: blockchain | Difficulty: advanced | Qubits: 2 | Depth: 6

Braket code:
from braket.circuits import Circuit

circuit = Circuit()

# Initial Hadamard
circuit.h(0).h(1)

# Oracle: CZ
circuit.cz(0, 1)

# Diffusion operator
circuit.h(0).h(1)
circuit.z(0).z(1)
circuit.cz(0, 1)
circuit.h(0).h(1)

print(circuit)
Lattice-based PQC security analysis circuit
格基PQC安全分析电路
Category: blockchain | Difficulty: advanced | Qubits: 5 | Depth: 7

Braket code:
import math
from braket.circuits import Circuit

circuit = Circuit()

# H on all qubits
circuit.h(0).h(1).h(2).h(3).h(4)

# Staggered CNOT ladder with Rz + H after each
circuit.cnot(0, 1)
circuit.rz(0, math.pi / 3).h(0)

circuit.cnot(1, 2)
circuit.rz(1, math.pi / 5).h(1)

circuit.cnot(2, 3)
circuit.rz(2, math.pi / 7).h(2)

circuit.cnot(3, 4)
circuit.rz(3, math.pi / 11).h(3)
circuit.rz(4, math.pi / 13).h(4)

print(circuit)
Quantum oblivious transfer protocol
量子不经意传输协议
Category: blockchain | Difficulty: advanced | Qubits: 5 | Depth: 8

Braket code:
import math
from braket.circuits import Circuit

circuit = Circuit()

# Layer 1: H on q0, q1
circuit.h(0)
circuit.h(1)

# Layer 2: CNOT q0->q2, CNOT q1->q3
circuit.cnot(0, 2)
circuit.cnot(1, 3)

# Layer 3: H on q0, q1, q2, q3
circuit.h(0)
circuit.h(1)
circuit.h(2)
circuit.h(3)

# Layer 4: CNOT q2->q4
circuit.cnot(2, 4)

# Layer 5: CNOT q3->q4
circuit.cnot(3, 4)

# Layer 6: Rz(pi/3) on q4
circuit.rz(4, math.pi / 3)

# Layer 7: CNOT q2->q4
circuit.cnot(2, 4)

# Layer 8: CNOT q3->q4
circuit.cnot(3, 4)

print(circuit)
Quantum digital signature scheme
量子数字签名方案
Category: blockchain | Difficulty: advanced | Qubits: 7 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit

circuit = Circuit()

# Layer 1: Hadamard gates
circuit.h(0).h(1).h(3).h(5)

# Layer 2: CNOT(1,2), CNOT(5,6)
circuit.cnot(1, 2).cnot(5, 6)

# Layer 3: Rz on q2, CNOT(0,1), CNOT(1,4)
circuit.rz(2, math.pi / 3).cnot(0, 1).cnot(1, 4)

# Layer 4: Rz on q4, CNOT(0,3), Rz on q6
circuit.rz(4, math.pi / 5).cnot(0, 3).rz(6, math.pi / 7)

# Layer 5: H on q1, H on q3
circuit.h(1).h(3)

# Layer 6: CNOT(0,5)
circuit.cnot(0, 5)

# Layer 7: H on q5
circuit.h(5)

print(circuit)
Quantum random number generation for consensus
用于共识的量子随机数生成
Category: blockchain | Difficulty: advanced | Qubits: 4 | Depth: 1

Braket code:
from braket.circuits import Circuit

circuit = Circuit()
circuit.h(0).h(1).h(2).h(3)

print(circuit)
GHZ-based quantum secret sharing
基于GHZ的量子秘密共享
Category: blockchain | Difficulty: advanced | Qubits: 4 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
circuit.cnot(0, 1)
circuit.cnot(0, 2)
circuit.rz(2, math.pi / 3)
circuit.rz(1, math.pi / 4)
circuit.cnot(0, 3)
circuit.rz(3, math.pi / 6)
Quantum verifiable random function
量子可验证随机函数
Category: blockchain | Difficulty: advanced | Qubits: 6 | Depth: 9

Braket code:
import math
from braket.circuits import Circuit

circuit = Circuit()

# Layer 1: H gates
circuit.h(0).h(3).h(4).h(5)

# Layer 2: CNOT q0->q1, q0->q2
circuit.cnot(0, 1)
circuit.cnot(0, 2)

# Layer 3: CNOT q3->q1, CNOT q4->q0
circuit.cnot(3, 1)
circuit.cnot(4, 0)

# Layer 4: CNOT q5->q2
circuit.cnot(5, 2)

# CRz(pi/6): q1 controls Rz(pi/6) on q4
a = math.pi / 6
circuit.rz(4, a / 2)
circuit.cnot(1, 4)
circuit.rz(4, -a / 2)
circuit.cnot(1, 4)

# H on q4
circuit.h(4)

# CRz(pi/4): q0 controls Rz(pi/4) on q3
a = math.pi / 4
circuit.rz(3, a / 2)
circuit.cnot(0, 3)
circuit.rz(3, -a / 2)
circuit.cnot(0, 3)

# CRz(pi/8): q2 controls Rz(pi/8) on q5
a = math.pi / 8
circuit.rz(5, a / 2)
circuit.cnot(2, 5)
circuit.rz(5, -a / 2)
circuit.cnot(2, 5)

# Final H gates
circuit.h(3)
circuit.h(5)

print(circuit)
Single Hadamard gate creating equal superposition
单个哈达玛门创建等概率叠加态
Category: basic_gates | Difficulty: basic | Qubits: 1 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0)
Controlled-NOT gate: fundamental two-qubit entangling gate
受控非门：基本的两量子比特纠缠门
Category: basic_gates | Difficulty: basic | Qubits: 2 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().cnot(0, 1)
Bell state preparation: maximally entangled two-qubit state
Bell态制备：最大纠缠的两量子比特态
Category: basic_gates | Difficulty: basic | Qubits: 2 | Depth: 2

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0).cnot(0, 1)
GHZ state: 3-qubit maximally entangled state
GHZ态：3量子比特最大纠缠态
Category: basic_gates | Difficulty: basic | Qubits: 3 | Depth: 3

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0).cnot(0, 1).cnot(0, 2)
Toffoli/CCX gate: universal for classical reversible computation
Toffoli/CCX门：经典可逆计算的通用门
Category: basic_gates | Difficulty: basic | Qubits: 3 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().ccnot(0, 1, 2)
SWAP decomposition into 3 CNOTs
SWAP分解为3个CNOT
Category: intermediate | Difficulty: intermediate | Qubits: 2 | Depth: 3

Braket code:
from braket.circuits import Circuit
circuit = Circuit().cnot(0, 1).cnot(1, 0).cnot(0, 1)
2-qubit Quantum Fourier Transform
2量子比特量子傅里叶变换
Category: intermediate | Difficulty: intermediate | Qubits: 2 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit().h(0).cphaseshift(0, 1, math.pi/2).h(1).swap(0, 1)
Quantum teleportation state preparation
量子隐形传态态制备
Category: intermediate | Difficulty: intermediate | Qubits: 3 | Depth: 4

Braket code:
from braket.circuits import Circuit

circuit = Circuit()
circuit.h(1)
circuit.cnot(1, 2)
circuit.cnot(0, 1)
circuit.h(0)

print(circuit)
Deutsch algorithm: single-bit oracle query
Deutsch算法：单比特oracle查询
Category: intermediate | Difficulty: intermediate | Qubits: 2 | Depth: 4

Braket code:
from braket.circuits import Circuit
circuit = Circuit().x(1).h(0).h(1).cnot(0, 1).h(0)
Superdense coding: 2 bits via 1 qubit
超密编码：1量子比特传2经典比特
Category: intermediate | Difficulty: intermediate | Qubits: 2 | Depth: 6

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0).cnot(0, 1).x(0).z(0).cnot(0, 1).h(0)
2-qubit Grover search
2量子比特Grover搜索
Category: intermediate | Difficulty: intermediate | Qubits: 2 | Depth: 6

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0).h(1).cz(0, 1).h(0).h(1).z(0).z(1).cz(0, 1).h(0).h(1)
Parameterized rotation circuit
参数化旋转电路
Category: intermediate | Difficulty: intermediate | Qubits: 2 | Depth: 2

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit().rx(0, math.pi/3).rz(1, math.pi/4).cnot(0, 1)
Fredkin (CSWAP) gate
Fredkin（CSWAP）门
Category: intermediate | Difficulty: intermediate | Qubits: 3 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().cswap(0, 1, 2)
Quantum shift register
量子移位寄存器
Category: intermediate | Difficulty: intermediate | Qubits: 4 | Depth: 4

Braket code:
from braket.circuits import Circuit
circuit = Circuit().x(0).cnot(0, 1).cnot(1, 2).cnot(2, 3)
Phase estimation (simplified)
相位估计（简化版）
Category: intermediate | Difficulty: intermediate | Qubits: 3 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit().h(0).h(1).cphaseshift(0, 2, math.pi/2).cphaseshift(1, 2, math.pi/4).h(0).h(1)