QuantBlockchain/qcv-dataset huggingface dataset:
Pauli-Y gate: bit-flip with phase
Pauli-Y门：带相位的比特翻转
Category: gate_coverage | Difficulty: basic | Qubits: 1 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().y(0)
S gate (phase gate): π/2 phase rotation
S门（相位门）：π/2相位旋转
Category: gate_coverage | Difficulty: basic | Qubits: 1 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().s(0)
T gate: π/4 phase rotation, key for fault-tolerant QC
T门：π/4相位旋转，容错量子计算的关键
Category: gate_coverage | Difficulty: basic | Qubits: 1 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().t(0)
Rx rotation: rotation around X-axis by π/4
Rx旋转：绕X轴旋转π/4
Category: gate_coverage | Difficulty: basic | Qubits: 1 | Depth: 1

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit().rx(0, math.pi / 4)
Ry rotation: rotation around Y-axis by π/3
Ry旋转：绕Y轴旋转π/3
Category: gate_coverage | Difficulty: basic | Qubits: 1 | Depth: 1

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit().ry(0, math.pi / 3)
Rz rotation: rotation around Z-axis by π/6
Rz旋转：绕Z轴旋转π/6
Category: gate_coverage | Difficulty: basic | Qubits: 1 | Depth: 1

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit().rz(0, math.pi / 6)
√X (V gate): half of a Pauli-X rotation
√X（V门）：Pauli-X旋转的一半
Category: gate_coverage | Difficulty: basic | Qubits: 1 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().v(0)
Controlled-Z: phase flip on |11⟩
受控Z门：对|11⟩施加相位翻转
Category: gate_coverage | Difficulty: basic | Qubits: 2 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().cz(0, 1)
Controlled-Ry: decomposed into Ry-CNOT-Ry-CNOT
受控Ry门：分解为Ry-CNOT-Ry-CNOT
Category: gate_coverage | Difficulty: basic | Qubits: 2 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
# Braket 没有原生 CRy，用分解: Ry(θ/2)-CNOT-Ry(-θ/2)-CNOT
theta = math.pi / 4
circuit = Circuit()
circuit.ry(1, theta / 2)
circuit.cnot(0, 1)
circuit.ry(1, -theta / 2)
circuit.cnot(0, 1)
Controlled-Rx: decomposed into Rx-CNOT-Rx-CNOT
受控Rx门：分解为Rx-CNOT-Rx-CNOT
Category: gate_coverage | Difficulty: basic | Qubits: 2 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
# Braket 没有原生 CRx，用分解: Rz(-π/2)-CNOT-Rz(π/2)-Ry(-θ/2)-CNOT-Ry(θ/2)
# 等价分解: Rx(θ/2)-CNOT-Rx(-θ/2)-CNOT (简化)
theta = math.pi / 3
circuit = Circuit()
circuit.rx(1, theta / 2)
circuit.cnot(0, 1)
circuit.rx(1, -theta / 2)
circuit.cnot(0, 1)
CCZ gate: doubly-controlled phase flip
CCZ门：双重受控相位翻转
Category: gate_coverage | Difficulty: basic | Qubits: 3 | Depth: 3

Braket code:
from braket.circuits import Circuit
# CCZ = H(2)-CCX-H(2)
circuit = Circuit()
circuit.h(2)
circuit.ccnot(0, 1, 2)
circuit.h(2)
iSWAP gate: swap with imaginary phase
iSWAP门：带虚数相位的交换
Category: gate_coverage | Difficulty: basic | Qubits: 2 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit
# iSWAP = SWAP · (CZ on both directions) = specific decomposition
# iSWAP matrix: |00⟩→|00⟩, |01⟩→i|10⟩, |10⟩→i|01⟩, |11⟩→|11⟩
circuit = Circuit()
circuit.s(0)
circuit.s(1)
circuit.h(0)
circuit.cnot(0, 1)
circuit.cnot(1, 0)
circuit.h(1)
CCRz: doubly-controlled Rz decomposed into CNOT+Rz
CCRz：双重受控Rz分解为CNOT+Rz
Category: gate_coverage | Difficulty: basic | Qubits: 3 | Depth: 8

Braket code:
import math
from braket.circuits import Circuit
# CCRz(π/4) decomposed
circuit = Circuit()
circuit.cnot(1, 2)
circuit.rz(2, -math.pi / 8)
circuit.cnot(0, 2)
circuit.rz(2, math.pi / 8)
circuit.cnot(1, 2)
circuit.rz(2, -math.pi / 8)
circuit.cnot(0, 2)
circuit.rz(2, math.pi / 8)
Sequential Rx-Ry-Rz rotations followed by CNOT
连续Rx-Ry-Rz旋转后接CNOT
Category: gate_coverage | Difficulty: basic | Qubits: 2 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.rx(0, math.pi / 4)
circuit.ry(0, math.pi / 3)
circuit.rz(0, math.pi / 6)
circuit.cnot(0, 1)
S-T-CNOT-T†-S† sequence demonstrating global phase
S-T-CNOT-T†-S†序列展示全局相位
Category: gate_coverage | Difficulty: basic | Qubits: 2 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.s(0)
circuit.t(0)
circuit.cnot(0, 1)
circuit.ti(0)
circuit.si(0)
4-qubit GHZ state
4量子比特GHZ态
Category: qubit_scaling | Difficulty: intermediate | Qubits: 4 | Depth: 4

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(1, 4):
    circuit.cnot(0, i)
5-qubit GHZ state
5量子比特GHZ态
Category: qubit_scaling | Difficulty: intermediate | Qubits: 5 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(1, 5):
    circuit.cnot(0, i)
6-qubit GHZ state
6量子比特GHZ态
Category: qubit_scaling | Difficulty: intermediate | Qubits: 6 | Depth: 6

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(1, 6):
    circuit.cnot(0, i)
8-qubit GHZ state
8量子比特GHZ态
Category: qubit_scaling | Difficulty: intermediate | Qubits: 8 | Depth: 8

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(1, 8):
    circuit.cnot(0, i)
10-qubit GHZ state: largest circuit in benchmark
10量子比特GHZ态：基准中最大的电路
Category: qubit_scaling | Difficulty: intermediate | Qubits: 10 | Depth: 10

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

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(4):
    circuit.h(i)
    for j in range(i + 1, 4):
        circuit.cphaseshift(j, i, math.pi / 2 ** (j - i))
circuit.swap(0, 3)
circuit.swap(1, 2)
5-qubit Quantum Fourier Transform
5量子比特量子傅里叶变换
Category: qubit_scaling | Difficulty: intermediate | Qubits: 5 | Depth: 10

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(5):
    circuit.h(i)
    for j in range(i + 1, 5):
        circuit.cphaseshift(j, i, math.pi / 2 ** (j - i))
circuit.swap(0, 4)
circuit.swap(1, 3)
6-qubit linear CNOT chain entanglement
6量子比特线性CNOT链纠缠
Category: qubit_scaling | Difficulty: intermediate | Qubits: 6 | Depth: 6

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(5):
    circuit.cnot(i, i + 1)
6-qubit ring topology entanglement
6量子比特环形拓扑纠缠
Category: qubit_scaling | Difficulty: intermediate | Qubits: 6 | Depth: 7

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(5):
    circuit.cnot(i, i + 1)
circuit.cnot(5, 0)
4-qubit ladder/ring CNOT topology
4量子比特梯形/环形CNOT拓扑
Category: qubit_scaling | Difficulty: intermediate | Qubits: 4 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
circuit.cnot(0, 1)
circuit.cnot(1, 2)
circuit.cnot(2, 3)
circuit.cnot(3, 0)
4-qubit all-pairs CNOT entanglement
4量子比特全连接CNOT纠缠
Category: qubit_scaling | Difficulty: intermediate | Qubits: 4 | Depth: 6

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(4):
    for j in range(i + 1, 4):
        circuit.cnot(i, j)
5-qubit star topology: q0 controls all others
5量子比特星形拓扑：q0控制所有其他
Category: qubit_scaling | Difficulty: intermediate | Qubits: 5 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(1, 5):
    circuit.cnot(0, i)
Deutsch-Jozsa algorithm (2-bit): constant vs balanced
Deutsch-Jozsa算法（2比特）：常数vs平衡
Category: classical_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.x(2).h(0).h(1).h(2)
circuit.cnot(0, 2).cnot(1, 2)
circuit.h(0).h(1)
Deutsch-Jozsa algorithm (3-bit)
Deutsch-Jozsa算法（3比特）
Category: classical_algorithms | Difficulty: advanced | Qubits: 4 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.x(3).h(0).h(1).h(2).h(3)
circuit.cnot(0, 3).cnot(2, 3)
circuit.h(0).h(1).h(2)
Simon's algorithm: hidden subgroup problem
Simon算法：隐藏子群问题
Category: classical_algorithms | Difficulty: advanced | Qubits: 4 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1)
circuit.cnot(0, 2).cnot(0, 3).cnot(1, 2).cnot(1, 3)
circuit.h(0).h(1)
Grover's search (4-qubit) with ancilla
Grover搜索（4量子比特）含辅助比特
Category: classical_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 11

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1)
circuit.h(1).ccnot(0, 1, 2).h(1)
circuit.h(0).h(1).x(0).x(1)
circuit.h(1).cnot(0, 1).h(1)
circuit.x(0).x(1).h(0).h(1)
Shor's period finding (simplified, mod 15)
Shor周期查找（简化版，mod 15）
Category: classical_algorithms | Difficulty: advanced | Qubits: 4 | Depth: 7

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1)
circuit.x(3)
circuit.cnot(1, 2).cnot(1, 3)
circuit.ccnot(0, 2, 3)
circuit.h(0).cphaseshift(1, 0, -math.pi / 2).h(1)
Quantum Phase Estimation (3-qubit)
量子相位估计（3量子比特）
Category: classical_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.x(2)
circuit.h(0).h(1)
circuit.cphaseshift(0, 2, math.pi / 2)
circuit.cphaseshift(1, 2, math.pi / 4)
circuit.h(0).cphaseshift(1, 0, -math.pi / 2).h(1)
circuit.swap(0, 1)
Quantum Phase Estimation (4-qubit)
量子相位估计（4量子比特）
Category: classical_algorithms | Difficulty: advanced | Qubits: 4 | Depth: 7

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.x(3)
circuit.h(0).h(1)
circuit.cphaseshift(0, 2, math.pi / 2).cphaseshift(0, 3, math.pi / 4)
circuit.cphaseshift(1, 2, math.pi / 4).cphaseshift(1, 3, math.pi / 8)
circuit.h(0).cphaseshift(1, 0, -math.pi / 2).h(1)
circuit.swap(0, 1)
HHL algorithm (simplified linear solver)
HHL算法（简化线性求解器）
Category: classical_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.ry(2, math.pi / 3)
circuit.h(1)
circuit.cphaseshift(1, 2, math.pi / 2)
circuit.h(1)
# controlled Ry on ancilla
circuit.ry(0, math.pi / 8)
circuit.cnot(1, 0)
circuit.ry(0, -math.pi / 8)
circuit.cnot(1, 0)
SWAP test: quantum state comparison
SWAP测试：量子态比较
Category: classical_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 3

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
circuit.cswap(0, 1, 2)
circuit.h(0)
W state preparation (3-qubit)
W态制备（3量子比特）
Category: classical_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 7

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.ry(0, 2 * math.acos(1 / math.sqrt(3)))
# controlled-H decomposition: Ry(π/4)-CNOT-Ry(-π/4)
circuit.ry(1, math.pi / 4)
circuit.cnot(0, 1)
circuit.ry(1, -math.pi / 4)
circuit.cnot(0, 1)
circuit.cnot(1, 2)
circuit.cnot(0, 1)
circuit.x(0)
W state preparation (4-qubit)
W态制备（4量子比特）
Category: classical_algorithms | Difficulty: advanced | Qubits: 4 | Depth: 11

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.ry(0, 2 * math.acos(0.5))
# controlled-H on q1
circuit.ry(1, math.pi / 4)
circuit.cnot(0, 1)
circuit.ry(1, -math.pi / 4)
circuit.cnot(0, 1)
circuit.ry(1, 2 * math.acos(1 / math.sqrt(2)))
circuit.cnot(1, 2)
# controlled-H on q3
circuit.ry(3, math.pi / 4)
circuit.cnot(1, 3)
circuit.ry(3, -math.pi / 4)
circuit.cnot(1, 3)
circuit.cnot(0, 1)
circuit.x(0)
Amplitude encoding: uniform 2-qubit superposition
振幅编码：均匀2量子比特叠加
Category: classical_algorithms | Difficulty: advanced | Qubits: 2 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0).h(1)
Amplitude encoding: uniform 3-qubit superposition
振幅编码：均匀3量子比特叠加
Category: classical_algorithms | Difficulty: advanced | Qubits: 3 | Depth: 1

Braket code:
from braket.circuits import Circuit
circuit = Circuit().h(0).h(1).h(2)
Quantum ripple-carry adder
量子逐位进位加法器
Category: classical_algorithms | Difficulty: advanced | Qubits: 4 | Depth: 3

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.ccnot(0, 2, 3)
circuit.cnot(0, 2)
circuit.ccnot(1, 2, 3)
QFT-based addition in Fourier space
基于QFT的傅里叶空间加法
Category: classical_algorithms | Difficulty: advanced | Qubits: 4 | Depth: 8

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).cphaseshift(1, 0, math.pi / 2)
circuit.h(1)
circuit.cphaseshift(2, 0, math.pi / 2).cphaseshift(3, 0, math.pi / 4)
circuit.cphaseshift(3, 1, math.pi / 2)
circuit.h(1).cphaseshift(1, 0, -math.pi / 2).h(0)
Hardware-efficient ansatz (2-qubit, 2 layers)
硬件高效拟设（2量子比特，2层）
Category: variational | Difficulty: intermediate | Qubits: 2 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.ry(0, math.pi/4).rz(0, math.pi/3)
circuit.ry(1, math.pi/5).rz(1, math.pi/6)
circuit.cnot(0, 1)
circuit.ry(0, math.pi/7).rz(0, math.pi/8)
circuit.ry(1, math.pi/9).rz(1, math.pi/10)
Hardware-efficient ansatz (4-qubit, 2 layers)
硬件高效拟设（4量子比特，2层）
Category: variational | Difficulty: intermediate | Qubits: 4 | Depth: 9

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(4):
    circuit.ry(i, math.pi / (i + 3))
    circuit.rz(i, math.pi / (i + 4))
for i in range(3):
    circuit.cnot(i, i + 1)
for i in range(4):
    circuit.ry(i, math.pi / (i + 5))
    circuit.rz(i, math.pi / (i + 6))
for i in range(3):
    circuit.cnot(i, i + 1)
UCCSD ansatz for H2 molecule
H2分子的UCCSD拟设
Category: variational | Difficulty: intermediate | Qubits: 2 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.x(0)
circuit.ry(1, math.pi / 5)
circuit.cnot(0, 1)
circuit.ry(1, -math.pi / 5)
circuit.cnot(0, 1)
QAOA 2-layer for MaxCut on 4-node ring
4节点环MaxCut的2层QAOA
Category: variational | Difficulty: intermediate | Qubits: 4 | Depth: 27

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(4):
    circuit.h(i)
for gamma, beta in [(math.pi/4, math.pi/8), (math.pi/6, math.pi/10)]:
    for i, j in [(0,1),(1,2),(2,3),(3,0)]:
        circuit.cnot(i, j)
        circuit.rz(j, 2 * gamma)
        circuit.cnot(i, j)
    for i in range(4):
        circuit.rx(i, 2 * beta)
VQE with Ry gates and linear CNOT entangling
Ry门+线性CNOT纠缠的VQE
Category: variational | Difficulty: intermediate | Qubits: 4 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
angles = [math.pi/3, math.pi/4, math.pi/5, math.pi/6]
circuit = Circuit()
for i in range(4):
    circuit.ry(i, angles[i])
for i in range(3):
    circuit.cnot(i, i + 1)
VQE with Ry gates and circular CNOT entangling
Ry门+环形CNOT纠缠的VQE
Category: variational | Difficulty: intermediate | Qubits: 4 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(4):
    circuit.ry(i, math.pi / (i + 3))
for i in range(3):
    circuit.cnot(i, i + 1)
circuit.cnot(3, 0)
for i in range(4):
    circuit.ry(i, math.pi / (i + 5))
Parameter shift rule demonstration circuit
参数偏移规则演示电路
Category: variational | Difficulty: intermediate | Qubits: 2 | Depth: 3

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.rx(0, math.pi / 4)
circuit.cnot(0, 1)
circuit.ry(1, math.pi / 3)
Data reuploading: Rx-CNOT-Rx-CNOT pattern
数据重上传：Rx-CNOT-Rx-CNOT模式
Category: variational | Difficulty: intermediate | Qubits: 2 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.rx(0, math.pi/4).rx(1, math.pi/5)
circuit.cnot(0, 1)
circuit.rx(0, math.pi/3).rx(1, math.pi/6)
circuit.cnot(0, 1)
Alternating Ry/CNOT layers (3 repetitions)
交替Ry/CNOT层（3次重复）
Category: variational | Difficulty: intermediate | Qubits: 4 | Depth: 10

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for layer in range(3):
    for i in range(4):
        circuit.ry(i, math.pi / (layer * 4 + i + 3))
    for i in range(3):
        circuit.cnot(i, i + 1)
Strongly entangling layers with long-range CNOTs
带长程CNOT的强纠缠层
Category: variational | Difficulty: intermediate | Qubits: 3 | Depth: 12

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(3):
    circuit.rx(i, math.pi / (i + 3))
    circuit.ry(i, math.pi / (i + 4))
    circuit.rz(i, math.pi / (i + 5))
circuit.cnot(0, 1).cnot(1, 2).cnot(2, 0)
for i in range(3):
    circuit.rx(i, math.pi / (i + 6))
    circuit.ry(i, math.pi / (i + 7))
    circuit.rz(i, math.pi / (i + 8))
circuit.cnot(0, 2).cnot(2, 1).cnot(1, 0)
3-qubit bit-flip code encoding
3量子比特比特翻转码编码
Category: error_correction | Difficulty: advanced | Qubits: 3 | Depth: 2

Braket code:
from braket.circuits import Circuit
circuit = Circuit().cnot(0, 1).cnot(0, 2)
3-qubit phase-flip code encoding
3量子比特相位翻转码编码
Category: error_correction | Difficulty: advanced | Qubits: 3 | Depth: 3

Braket code:
from braket.circuits import Circuit
circuit = Circuit().cnot(0, 1).cnot(0, 2).h(0).h(1).h(2)
Shor's 9-qubit error correction code
Shor 9量子比特纠错码
Category: error_correction | Difficulty: advanced | Qubits: 9 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.cnot(0, 3).cnot(0, 6)
circuit.h(0).h(3).h(6)
circuit.cnot(0, 1).cnot(0, 2)
circuit.cnot(3, 4).cnot(3, 5)
circuit.cnot(6, 7).cnot(6, 8)
Steane [[7,1,3]] code encoding
Steane [[7,1,3]]码编码
Category: error_correction | Difficulty: advanced | Qubits: 7 | Depth: 7

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1).h(2)
circuit.cnot(0, 3).cnot(0, 4).cnot(0, 5)
circuit.cnot(1, 3).cnot(1, 5).cnot(1, 6)
circuit.cnot(2, 4).cnot(2, 5).cnot(2, 6)
Minimal surface code patch (9 qubits)
最小表面码补丁（9量子比特）
Category: error_correction | Difficulty: advanced | Qubits: 9 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(4).cnot(4, 0).cnot(4, 1).h(4)
circuit.h(5).cnot(5, 2).cnot(5, 3).h(5)
circuit.cnot(0, 6).cnot(2, 6)
circuit.cnot(1, 7).cnot(3, 7)
circuit.cnot(0, 8).cnot(1, 8)
5-qubit repetition code
5量子比特重复码
Category: error_correction | Difficulty: advanced | Qubits: 5 | Depth: 4

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.cnot(0, 1).cnot(0, 2).cnot(0, 3).cnot(0, 4)
5-qubit cat state |00000⟩+|11111⟩
5量子比特猫态
Category: error_correction | Difficulty: advanced | Qubits: 5 | Depth: 5

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(1, 5):
    circuit.cnot(0, i)
Transversal logical CNOT between two 3-qubit codes
两个3量子比特码之间的横向逻辑CNOT
Category: error_correction | Difficulty: advanced | Qubits: 6 | Depth: 3

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.cnot(0, 1).cnot(0, 2)
circuit.cnot(3, 4).cnot(3, 5)
circuit.cnot(0, 3).cnot(1, 4).cnot(2, 5)
Angle encoding: Rx(x_i) per qubit
角度编码：每量子比特Rx(x_i)
Category: quantum_ml | Difficulty: intermediate | Qubits: 4 | Depth: 1

Braket code:
import math
from braket.circuits import Circuit
angles = [math.pi/3, math.pi/4, math.pi/5, math.pi/6]
circuit = Circuit()
for i in range(4):
    circuit.rx(i, angles[i])
Amplitude encoding via Ry-CNOT tree
通过Ry-CNOT树的振幅编码
Category: quantum_ml | Difficulty: intermediate | Qubits: 2 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.ry(0, math.pi / 3)
circuit.cnot(0, 1)
circuit.ry(1, math.pi / 5)
circuit.cnot(0, 1)
circuit.ry(1, math.pi / 7)
IQP encoding: H-ZZ interaction-H
IQP编码：H-ZZ交互-H
Category: quantum_ml | Difficulty: intermediate | Qubits: 4 | Depth: 11

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(4):
    circuit.h(i)
for i in range(3):
    circuit.cnot(i, i + 1)
    circuit.rz(i + 1, math.pi / 4)
    circuit.cnot(i, i + 1)
for i in range(4):
    circuit.h(i)
Quantum neural network single layer
量子神经网络单层
Category: quantum_ml | Difficulty: intermediate | Qubits: 4 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(4):
    circuit.rx(i, math.pi / (i + 3))
    circuit.rz(i, math.pi / (i + 4))
for i in range(3):
    circuit.cnot(i, i + 1)
for i in range(4):
    circuit.rz(i, math.pi / (i + 5))
Quantum convolutional neural network (8 qubits)
量子卷积神经网络（8量子比特）
Category: quantum_ml | Difficulty: intermediate | Qubits: 8 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(0, 8, 2):
    circuit.ry(i, math.pi / 4)
    circuit.ry(i + 1, math.pi / 4)
    circuit.cnot(i, i + 1)
for i in range(0, 8, 2):
    circuit.cnot(i, i + 1)
circuit.ry(1, math.pi / 3).ry(3, math.pi / 3).cnot(1, 3)
circuit.ry(5, math.pi / 3).ry(7, math.pi / 3).cnot(5, 7)
circuit.cnot(1, 3).cnot(5, 7)
Quantum kernel method circuit
量子核方法电路
Category: quantum_ml | Difficulty: intermediate | Qubits: 2 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1)
circuit.rz(0, math.pi / 4).rz(1, math.pi / 3)
circuit.cnot(0, 1).rz(1, math.pi / 5).cnot(0, 1)
circuit.h(0).h(1)
2-qubit quantum classifier
2量子比特量子分类器
Category: quantum_ml | Difficulty: intermediate | Qubits: 2 | Depth: 4

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.rx(0, math.pi / 4)
circuit.ry(0, math.pi / 3).ry(1, math.pi / 5)
circuit.cnot(0, 1)
circuit.ry(0, math.pi / 6).ry(1, math.pi / 7)
Quantum GAN generator circuit
量子GAN生成器电路
Category: quantum_ml | Difficulty: intermediate | Qubits: 3 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).h(1).h(2)
circuit.ry(0, math.pi / 4).ry(1, math.pi / 5).ry(2, math.pi / 6)
circuit.cnot(0, 1).cnot(1, 2)
circuit.ry(0, math.pi / 3).ry(1, math.pi / 4).ry(2, math.pi / 5)
Deep circuit exhibiting barren plateau
展示贫瘠高原的深层电路
Category: quantum_ml | Difficulty: intermediate | Qubits: 4 | Depth: 13

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for layer in range(4):
    for i in range(4):
        circuit.ry(i, math.pi * (layer * 4 + i + 1) / 17)
    for i in range(3):
        circuit.cnot(i, i + 1)
Circuit expressibility test with varied rotations
具有多种旋转的电路表达能力测试
Category: quantum_ml | Difficulty: intermediate | Qubits: 3 | Depth: 7

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
for i in range(3):
    circuit.rx(i, math.pi / (i + 2))
    circuit.rz(i, math.pi / (i + 3))
circuit.cnot(0, 1).cnot(1, 2).cnot(2, 0)
for i in range(3):
    circuit.ry(i, math.pi / (i + 4))
    circuit.rz(i, math.pi / (i + 5))
E91 QKD protocol with Bell pairs
基于Bell对的E91 QKD协议
Category: blockchain_extended | Difficulty: advanced | Qubits: 4 | Depth: 3

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0).cnot(0, 1)
circuit.h(2).cnot(2, 3)
circuit.ry(0, math.pi / 8)
circuit.ry(1, math.pi / 4)
Wiesner quantum money (unclonable states)
Wiesner量子货币（不可克隆态）
Category: blockchain_extended | Difficulty: advanced | Qubits: 3 | Depth: 2

Braket code:
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
circuit.x(1)
circuit.h(2).s(2)
Blind quantum computing: delegated computation
盲量子计算：委托计算
Category: blockchain_extended | Difficulty: advanced | Qubits: 4 | Depth: 5

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.rz(0, math.pi/3).rz(1, math.pi/5).rz(2, math.pi/7).rz(3, math.pi/9)
circuit.cnot(0, 1).cnot(1, 2).cnot(2, 3)
circuit.rz(0, math.pi/4).rz(2, math.pi/6)
GHZ-based quantum voting protocol
基于GHZ的量子投票协议
Category: blockchain_extended | Difficulty: advanced | Qubits: 5 | Depth: 6

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.h(0)
for i in range(1, 5):
    circuit.cnot(0, i)
circuit.rz(1, math.pi / 4).rz(3, math.pi / 4)
circuit.h(0)
Quantum sealed-bid auction
量子密封投标拍卖
Category: blockchain_extended | Difficulty: advanced | Qubits: 4 | Depth: 3

Braket code:
import math
from braket.circuits import Circuit
circuit = Circuit()
circuit.ry(0, math.pi/3).ry(1, math.pi/4).ry(2, math.pi/5).ry(3, math.pi/6)
circuit.cnot(0, 2).cnot(1, 3)
circuit.ccnot(2, 3, 0)