Example Corpus Overview
These examples are installed in the Python wheel under sansqrit/examples and mirrored here for SEO, documentation, AI training, and hands-on learning. Each example card now starts with a clear problem statement so users understand why the program exists before reading the code.
Search Examples
Program Index
Programs 1–100
Quantum DSL examples, real-world scenarios, QEC, hardware export, sparse 120+ qubit patterns, and backend diagnostics.
Programs 101–200
Quantum DSL examples, real-world scenarios, QEC, hardware export, sparse 120+ qubit patterns, and backend diagnostics.
Programs 201–300
Quantum DSL examples, real-world scenarios, QEC, hardware export, sparse 120+ qubit patterns, and backend diagnostics.
Programs 301–400
Quantum DSL examples, real-world scenarios, QEC, hardware export, sparse 120+ qubit patterns, and backend diagnostics.
Programs 401–500
Quantum DSL examples, real-world scenarios, QEC, hardware export, sparse 120+ qubit patterns, and backend diagnostics.
Programs 501–600
Quantum DSL examples, real-world scenarios, QEC, hardware export, sparse 120+ qubit patterns, and backend diagnostics.
Programs 601–700
Quantum DSL examples, real-world scenarios, QEC, hardware export, sparse 120+ qubit patterns, and backend diagnostics.
Programs 701–800
Quantum DSL examples, real-world scenarios, QEC, hardware export, sparse 120+ qubit patterns, and backend diagnostics.
Programs 801–820
Quantum DSL examples, real-world scenarios, QEC, hardware export, sparse 120+ qubit patterns, and backend diagnostics.
Programs 1–100
001 · Bell State
# Bell state with sparse simulation
simulate(2) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
let probs = probabilities(q)
print(probs)
print(measure_all(q, shots=512))
}
002 · Ghz Chain 8
# 8-qubit GHZ state
simulate(8, engine="sparse") {
let q = quantum_register(8)
H(q[0])
for i in range(7) {
CNOT(q[i], q[i + 1])
}
print(engine_nnz())
print(measure_all(q, shots=512))
}
003 · Qft Three Qubits
simulate(3) {
let q = quantum_register(3)
X(q[0])
qft(q)
print(probabilities(q))
}
004 · Inverse Qft Roundtrip
simulate(4) {
let q = quantum_register(4)
X(q[0])
X(q[2])
qft(q)
iqft(q)
print(probabilities(q))
}
005 · Sharded Bell
simulate(2, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
print(shards())
print(measure_all(q, shots=256))
}
006 · Threaded Superposition
simulate(12, engine="threaded", workers=4) {
let q = quantum_register(12)
H_all()
Rz_all(PI / 8)
print(engine_nnz())
print(measure_all(q, shots=128))
}
007 · Lookup Sx Inverse
simulate(1) {
let q = quantum_register(1)
SX(q[0])
SXdg(q[0])
print(probabilities(q))
}
008 · Toffoli Adder Bit
simulate(3) {
let q = quantum_register(3)
X(q[0])
X(q[1])
Toffoli(q[0], q[1], q[2])
print(probabilities(q))
}
009 · Fredkin Swap
simulate(3) {
let q = quantum_register(3)
X(q[0])
X(q[1])
Fredkin(q[0], q[1], q[2])
print(probabilities(q))
}
010 · Rzz Entangler
simulate(2) {
let q = quantum_register(2)
H(q[0])
H(q[1])
RZZ(q[0], q[1], PI / 3)
print(probabilities(q))
}
011 · Ms Gate
simulate(2) {
let q = quantum_register(2)
MS(q[0], q[1])
print(probabilities(q))
}
012 · Qasm Export
simulate(2) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
let text = export_qasm3()
print(text)
}
013 · Pipeline Statistics
let xs = [1, 2, 3, 4, 5, 6]
let squares = xs |> map(fn(x) => x * x)
let big = squares |> filter(fn(x) => x > 10)
let total = big |> sum
print(squares)
print(big)
print(total)
014 · Classical Function
fn energy(theta) {
return -cos(theta) + 0.1 * sin(2 * theta)
}
let values = [energy(x * PI / 16) for x in range(16)]
print(values)
print(min(values))
015 · Json Csv Io
let rows = [{"gate": "H", "qubit": 0}, {"gate": "CNOT", "qubit": 1}]
write_json("sansqrit_example.json", {"rows": rows, "shots": 128})
let payload = read_json("sansqrit_example.json")
print(payload)
016 · Grover Search
let result = grover_search(3, 5, shots=512)
print(result)
017 · Grover Multi
let result = grover_search_multi(4, [3, 12], shots=512)
print(result)
018 · Bernstein Vazirani
let secret = bernstein_vazirani("101101")
print(secret)
019 · Deutsch Jozsa Balanced
let result = deutsch_jozsa(4, "balanced")
print(result)
020 · Deutsch Jozsa Constant
let result = deutsch_jozsa(4, "constant")
print(result)
021 · Qaoa Triangle
let result = qaoa_maxcut(3, [(0,1), (1,2), (0,2)], p=1, shots=256)
print(result)
022 · Qaoa Square
let result = qaoa_maxcut(4, [(0,1), (1,2), (2,3), (3,0)], p=1, shots=256)
print(result)
023 · Vqe H2
let result = vqe_h2(0.735, max_iter=32)
print(result)
024 · Phase Estimation
let result = quantum_phase_estimation(0.3125, 5, shots=256)
print(result)
025 · Hhl 2X2
let result = hhl_solve([[2, 0], [0, 4]], [2, 8])
print(result)
026 · Teleport One
let result = teleport(1)
print(result)
027 · Superdense Coding
let result = superdense_coding(1, 0)
print(result)
028 · Bb84 Qkd
let key = bb84_qkd(24, eavesdropper=false)
print(key)
029 · Bb84 With Eavesdropper
let key = bb84_qkd(24, eavesdropper=true)
print(key)
030 · Shor Factor 15
let factors = shor_factor(15)
print(factors)
031 · Amplitude Estimation
let estimate = amplitude_estimation(0.37, 5)
print(estimate)
032 · Quantum Counting
let estimate = quantum_counting(6, 7, 5)
print(estimate)
033 · Variational Classifier
let score = variational_classifier([0.1, 0.5, 1.2], layers=3)
print(score)
034 · Variational Pattern 34
# Generated variational circuit pattern 34
simulate(7, engine="sparse") {
let q = quantum_register(7)
H_all()
# layer 0
Ry(q[0], PI / 8)
Rz(q[1], PI / 2)
Rx(q[2], PI / 3)
Ry(q[3], PI / 4)
Rz(q[4], PI / 5)
Rx(q[5], PI / 6)
Ry(q[6], PI / 7)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 3)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 5)
CNOT(q[4], q[5])
RZZ(q[5], q[6], PI / 7)
# layer 1
Rz(q[0], PI / 2)
Rx(q[1], PI / 3)
Ry(q[2], PI / 4)
Rz(q[3], PI / 5)
Rx(q[4], PI / 6)
Ry(q[5], PI / 7)
Rz(q[6], PI / 8)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 3)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 5)
CNOT(q[4], q[5])
RZZ(q[5], q[6], PI / 7)
print(engine_nnz())
print(measure_all(q, shots=128))
}
035 · Variational Pattern 35
# Generated variational circuit pattern 35
simulate(3, engine="sparse") {
let q = quantum_register(3)
H_all()
# layer 0
Rz(q[0], PI / 2)
Rx(q[1], PI / 3)
Ry(q[2], PI / 4)
RZZ(q[0], q[1], PI / 3)
CNOT(q[1], q[2])
# layer 1
Rx(q[0], PI / 3)
Ry(q[1], PI / 4)
Rz(q[2], PI / 5)
RZZ(q[0], q[1], PI / 3)
CNOT(q[1], q[2])
# layer 2
Ry(q[0], PI / 4)
Rz(q[1], PI / 5)
Rx(q[2], PI / 6)
RZZ(q[0], q[1], PI / 3)
CNOT(q[1], q[2])
print(engine_nnz())
print(measure_all(q, shots=128))
}
036 · Variational Pattern 36
# Generated variational circuit pattern 36
simulate(4, engine="sparse") {
let q = quantum_register(4)
H_all()
# layer 0
Rx(q[0], PI / 3)
Ry(q[1], PI / 4)
Rz(q[2], PI / 5)
Rx(q[3], PI / 6)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 5)
CNOT(q[2], q[3])
print(engine_nnz())
print(measure_all(q, shots=128))
}
037 · Variational Pattern 37
# Generated variational circuit pattern 37
simulate(5, engine="sparse") {
let q = quantum_register(5)
H_all()
# layer 0
Ry(q[0], PI / 4)
Rz(q[1], PI / 5)
Rx(q[2], PI / 6)
Ry(q[3], PI / 7)
Rz(q[4], PI / 8)
RZZ(q[0], q[1], PI / 5)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 7)
CNOT(q[3], q[4])
# layer 1
Rz(q[0], PI / 5)
Rx(q[1], PI / 6)
Ry(q[2], PI / 7)
Rz(q[3], PI / 8)
Rx(q[4], PI / 2)
RZZ(q[0], q[1], PI / 5)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 7)
CNOT(q[3], q[4])
print(engine_nnz())
print(measure_all(q, shots=128))
}
038 · Variational Pattern 38
# Generated variational circuit pattern 38
simulate(6, engine="sparse") {
let q = quantum_register(6)
H_all()
# layer 0
Rz(q[0], PI / 5)
Rx(q[1], PI / 6)
Ry(q[2], PI / 7)
Rz(q[3], PI / 8)
Rx(q[4], PI / 2)
Ry(q[5], PI / 3)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 7)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 4)
CNOT(q[4], q[5])
# layer 1
Rx(q[0], PI / 6)
Ry(q[1], PI / 7)
Rz(q[2], PI / 8)
Rx(q[3], PI / 2)
Ry(q[4], PI / 3)
Rz(q[5], PI / 4)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 7)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 4)
CNOT(q[4], q[5])
# layer 2
Ry(q[0], PI / 7)
Rz(q[1], PI / 8)
Rx(q[2], PI / 2)
Ry(q[3], PI / 3)
Rz(q[4], PI / 4)
Rx(q[5], PI / 5)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 7)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 4)
CNOT(q[4], q[5])
print(engine_nnz())
print(measure_all(q, shots=128))
}
039 · Variational Pattern 39
# Generated variational circuit pattern 39
simulate(7, engine="sparse") {
let q = quantum_register(7)
H_all()
# layer 0
Rx(q[0], PI / 6)
Ry(q[1], PI / 7)
Rz(q[2], PI / 8)
Rx(q[3], PI / 2)
Ry(q[4], PI / 3)
Rz(q[5], PI / 4)
Rx(q[6], PI / 5)
RZZ(q[0], q[1], PI / 7)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 4)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 6)
CNOT(q[5], q[6])
print(engine_nnz())
print(measure_all(q, shots=128))
}
040 · Variational Pattern 40
# Generated variational circuit pattern 40
simulate(3, engine="sparse") {
let q = quantum_register(3)
H_all()
# layer 0
Ry(q[0], PI / 7)
Rz(q[1], PI / 8)
Rx(q[2], PI / 2)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 4)
# layer 1
Rz(q[0], PI / 8)
Rx(q[1], PI / 2)
Ry(q[2], PI / 3)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 4)
print(engine_nnz())
print(measure_all(q, shots=128))
}
041 · Variational Pattern 41
# Generated variational circuit pattern 41
simulate(4, engine="sparse") {
let q = quantum_register(4)
H_all()
# layer 0
Rz(q[0], PI / 8)
Rx(q[1], PI / 2)
Ry(q[2], PI / 3)
Rz(q[3], PI / 4)
RZZ(q[0], q[1], PI / 4)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 6)
# layer 1
Rx(q[0], PI / 2)
Ry(q[1], PI / 3)
Rz(q[2], PI / 4)
Rx(q[3], PI / 5)
RZZ(q[0], q[1], PI / 4)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 6)
# layer 2
Ry(q[0], PI / 3)
Rz(q[1], PI / 4)
Rx(q[2], PI / 5)
Ry(q[3], PI / 6)
RZZ(q[0], q[1], PI / 4)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 6)
print(engine_nnz())
print(measure_all(q, shots=128))
}
042 · Variational Pattern 42
# Generated variational circuit pattern 42
simulate(5, engine="sparse") {
let q = quantum_register(5)
H_all()
# layer 0
Rx(q[0], PI / 2)
Ry(q[1], PI / 3)
Rz(q[2], PI / 4)
Rx(q[3], PI / 5)
Ry(q[4], PI / 6)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 6)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 3)
print(engine_nnz())
print(measure_all(q, shots=128))
}
043 · Variational Pattern 43
# Generated variational circuit pattern 43
simulate(6, engine="sparse") {
let q = quantum_register(6)
H_all()
# layer 0
Ry(q[0], PI / 3)
Rz(q[1], PI / 4)
Rx(q[2], PI / 5)
Ry(q[3], PI / 6)
Rz(q[4], PI / 7)
Rx(q[5], PI / 8)
RZZ(q[0], q[1], PI / 6)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 3)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 5)
# layer 1
Rz(q[0], PI / 4)
Rx(q[1], PI / 5)
Ry(q[2], PI / 6)
Rz(q[3], PI / 7)
Rx(q[4], PI / 8)
Ry(q[5], PI / 2)
RZZ(q[0], q[1], PI / 6)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 3)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 5)
print(engine_nnz())
print(measure_all(q, shots=128))
}
044 · Variational Pattern 44
# Generated variational circuit pattern 44
simulate(7, engine="sparse") {
let q = quantum_register(7)
H_all()
# layer 0
Rz(q[0], PI / 4)
Rx(q[1], PI / 5)
Ry(q[2], PI / 6)
Rz(q[3], PI / 7)
Rx(q[4], PI / 8)
Ry(q[5], PI / 2)
Rz(q[6], PI / 3)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 3)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 5)
CNOT(q[4], q[5])
RZZ(q[5], q[6], PI / 7)
# layer 1
Rx(q[0], PI / 5)
Ry(q[1], PI / 6)
Rz(q[2], PI / 7)
Rx(q[3], PI / 8)
Ry(q[4], PI / 2)
Rz(q[5], PI / 3)
Rx(q[6], PI / 4)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 3)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 5)
CNOT(q[4], q[5])
RZZ(q[5], q[6], PI / 7)
# layer 2
Ry(q[0], PI / 6)
Rz(q[1], PI / 7)
Rx(q[2], PI / 8)
Ry(q[3], PI / 2)
Rz(q[4], PI / 3)
Rx(q[5], PI / 4)
Ry(q[6], PI / 5)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 3)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 5)
CNOT(q[4], q[5])
RZZ(q[5], q[6], PI / 7)
print(engine_nnz())
print(measure_all(q, shots=128))
}
045 · Variational Pattern 45
# Generated variational circuit pattern 45
simulate(3, engine="sparse") {
let q = quantum_register(3)
H_all()
# layer 0
Rx(q[0], PI / 5)
Ry(q[1], PI / 6)
Rz(q[2], PI / 7)
RZZ(q[0], q[1], PI / 3)
CNOT(q[1], q[2])
print(engine_nnz())
print(measure_all(q, shots=128))
}
046 · Variational Pattern 46
# Generated variational circuit pattern 46
simulate(4, engine="sparse") {
let q = quantum_register(4)
H_all()
# layer 0
Ry(q[0], PI / 6)
Rz(q[1], PI / 7)
Rx(q[2], PI / 8)
Ry(q[3], PI / 2)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 5)
CNOT(q[2], q[3])
# layer 1
Rz(q[0], PI / 7)
Rx(q[1], PI / 8)
Ry(q[2], PI / 2)
Rz(q[3], PI / 3)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 5)
CNOT(q[2], q[3])
print(engine_nnz())
print(measure_all(q, shots=128))
}
047 · Variational Pattern 47
# Generated variational circuit pattern 47
simulate(5, engine="sparse") {
let q = quantum_register(5)
H_all()
# layer 0
Rz(q[0], PI / 7)
Rx(q[1], PI / 8)
Ry(q[2], PI / 2)
Rz(q[3], PI / 3)
Rx(q[4], PI / 4)
RZZ(q[0], q[1], PI / 5)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 7)
CNOT(q[3], q[4])
# layer 1
Rx(q[0], PI / 8)
Ry(q[1], PI / 2)
Rz(q[2], PI / 3)
Rx(q[3], PI / 4)
Ry(q[4], PI / 5)
RZZ(q[0], q[1], PI / 5)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 7)
CNOT(q[3], q[4])
# layer 2
Ry(q[0], PI / 2)
Rz(q[1], PI / 3)
Rx(q[2], PI / 4)
Ry(q[3], PI / 5)
Rz(q[4], PI / 6)
RZZ(q[0], q[1], PI / 5)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 7)
CNOT(q[3], q[4])
print(engine_nnz())
print(measure_all(q, shots=128))
}
048 · Variational Pattern 48
# Generated variational circuit pattern 48
simulate(6, engine="sparse") {
let q = quantum_register(6)
H_all()
# layer 0
Rx(q[0], PI / 8)
Ry(q[1], PI / 2)
Rz(q[2], PI / 3)
Rx(q[3], PI / 4)
Ry(q[4], PI / 5)
Rz(q[5], PI / 6)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 7)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 4)
CNOT(q[4], q[5])
print(engine_nnz())
print(measure_all(q, shots=128))
}
049 · Variational Pattern 49
# Generated variational circuit pattern 49
simulate(7, engine="sparse") {
let q = quantum_register(7)
H_all()
# layer 0
Ry(q[0], PI / 2)
Rz(q[1], PI / 3)
Rx(q[2], PI / 4)
Ry(q[3], PI / 5)
Rz(q[4], PI / 6)
Rx(q[5], PI / 7)
Ry(q[6], PI / 8)
RZZ(q[0], q[1], PI / 7)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 4)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 6)
CNOT(q[5], q[6])
# layer 1
Rz(q[0], PI / 3)
Rx(q[1], PI / 4)
Ry(q[2], PI / 5)
Rz(q[3], PI / 6)
Rx(q[4], PI / 7)
Ry(q[5], PI / 8)
Rz(q[6], PI / 2)
RZZ(q[0], q[1], PI / 7)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 4)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 6)
CNOT(q[5], q[6])
print(engine_nnz())
print(measure_all(q, shots=128))
}
050 · Variational Pattern 50
# Generated variational circuit pattern 50
simulate(3, engine="sparse") {
let q = quantum_register(3)
H_all()
# layer 0
Rz(q[0], PI / 3)
Rx(q[1], PI / 4)
Ry(q[2], PI / 5)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 4)
# layer 1
Rx(q[0], PI / 4)
Ry(q[1], PI / 5)
Rz(q[2], PI / 6)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 4)
# layer 2
Ry(q[0], PI / 5)
Rz(q[1], PI / 6)
Rx(q[2], PI / 7)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 4)
print(engine_nnz())
print(measure_all(q, shots=128))
}
051 · Variational Pattern 51
# Generated variational circuit pattern 51
simulate(4, engine="sparse") {
let q = quantum_register(4)
H_all()
# layer 0
Rx(q[0], PI / 4)
Ry(q[1], PI / 5)
Rz(q[2], PI / 6)
Rx(q[3], PI / 7)
RZZ(q[0], q[1], PI / 4)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 6)
print(engine_nnz())
print(measure_all(q, shots=128))
}
052 · Variational Pattern 52
# Generated variational circuit pattern 52
simulate(5, engine="sparse") {
let q = quantum_register(5)
H_all()
# layer 0
Ry(q[0], PI / 5)
Rz(q[1], PI / 6)
Rx(q[2], PI / 7)
Ry(q[3], PI / 8)
Rz(q[4], PI / 2)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 6)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 3)
# layer 1
Rz(q[0], PI / 6)
Rx(q[1], PI / 7)
Ry(q[2], PI / 8)
Rz(q[3], PI / 2)
Rx(q[4], PI / 3)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 6)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 3)
print(engine_nnz())
print(measure_all(q, shots=128))
}
053 · Variational Pattern 53
# Generated variational circuit pattern 53
simulate(6, engine="sparse") {
let q = quantum_register(6)
H_all()
# layer 0
Rz(q[0], PI / 6)
Rx(q[1], PI / 7)
Ry(q[2], PI / 8)
Rz(q[3], PI / 2)
Rx(q[4], PI / 3)
Ry(q[5], PI / 4)
RZZ(q[0], q[1], PI / 6)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 3)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 5)
# layer 1
Rx(q[0], PI / 7)
Ry(q[1], PI / 8)
Rz(q[2], PI / 2)
Rx(q[3], PI / 3)
Ry(q[4], PI / 4)
Rz(q[5], PI / 5)
RZZ(q[0], q[1], PI / 6)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 3)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 5)
# layer 2
Ry(q[0], PI / 8)
Rz(q[1], PI / 2)
Rx(q[2], PI / 3)
Ry(q[3], PI / 4)
Rz(q[4], PI / 5)
Rx(q[5], PI / 6)
RZZ(q[0], q[1], PI / 6)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 3)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 5)
print(engine_nnz())
print(measure_all(q, shots=128))
}
054 · Variational Pattern 54
# Generated variational circuit pattern 54
simulate(7, engine="sparse") {
let q = quantum_register(7)
H_all()
# layer 0
Rx(q[0], PI / 7)
Ry(q[1], PI / 8)
Rz(q[2], PI / 2)
Rx(q[3], PI / 3)
Ry(q[4], PI / 4)
Rz(q[5], PI / 5)
Rx(q[6], PI / 6)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 3)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 5)
CNOT(q[4], q[5])
RZZ(q[5], q[6], PI / 7)
print(engine_nnz())
print(measure_all(q, shots=128))
}
055 · Variational Pattern 55
# Generated variational circuit pattern 55
simulate(3, engine="sparse") {
let q = quantum_register(3)
H_all()
# layer 0
Ry(q[0], PI / 8)
Rz(q[1], PI / 2)
Rx(q[2], PI / 3)
RZZ(q[0], q[1], PI / 3)
CNOT(q[1], q[2])
# layer 1
Rz(q[0], PI / 2)
Rx(q[1], PI / 3)
Ry(q[2], PI / 4)
RZZ(q[0], q[1], PI / 3)
CNOT(q[1], q[2])
print(engine_nnz())
print(measure_all(q, shots=128))
}
056 · Variational Pattern 56
# Generated variational circuit pattern 56
simulate(4, engine="sparse") {
let q = quantum_register(4)
H_all()
# layer 0
Rz(q[0], PI / 2)
Rx(q[1], PI / 3)
Ry(q[2], PI / 4)
Rz(q[3], PI / 5)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 5)
CNOT(q[2], q[3])
# layer 1
Rx(q[0], PI / 3)
Ry(q[1], PI / 4)
Rz(q[2], PI / 5)
Rx(q[3], PI / 6)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 5)
CNOT(q[2], q[3])
# layer 2
Ry(q[0], PI / 4)
Rz(q[1], PI / 5)
Rx(q[2], PI / 6)
Ry(q[3], PI / 7)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 5)
CNOT(q[2], q[3])
print(engine_nnz())
print(measure_all(q, shots=128))
}
057 · Variational Pattern 57
# Generated variational circuit pattern 57
simulate(5, engine="sparse") {
let q = quantum_register(5)
H_all()
# layer 0
Rx(q[0], PI / 3)
Ry(q[1], PI / 4)
Rz(q[2], PI / 5)
Rx(q[3], PI / 6)
Ry(q[4], PI / 7)
RZZ(q[0], q[1], PI / 5)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 7)
CNOT(q[3], q[4])
print(engine_nnz())
print(measure_all(q, shots=128))
}
058 · Variational Pattern 58
# Generated variational circuit pattern 58
simulate(6, engine="sparse") {
let q = quantum_register(6)
H_all()
# layer 0
Ry(q[0], PI / 4)
Rz(q[1], PI / 5)
Rx(q[2], PI / 6)
Ry(q[3], PI / 7)
Rz(q[4], PI / 8)
Rx(q[5], PI / 2)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 7)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 4)
CNOT(q[4], q[5])
# layer 1
Rz(q[0], PI / 5)
Rx(q[1], PI / 6)
Ry(q[2], PI / 7)
Rz(q[3], PI / 8)
Rx(q[4], PI / 2)
Ry(q[5], PI / 3)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 7)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 4)
CNOT(q[4], q[5])
print(engine_nnz())
print(measure_all(q, shots=128))
}
059 · Variational Pattern 59
# Generated variational circuit pattern 59
simulate(7, engine="sparse") {
let q = quantum_register(7)
H_all()
# layer 0
Rz(q[0], PI / 5)
Rx(q[1], PI / 6)
Ry(q[2], PI / 7)
Rz(q[3], PI / 8)
Rx(q[4], PI / 2)
Ry(q[5], PI / 3)
Rz(q[6], PI / 4)
RZZ(q[0], q[1], PI / 7)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 4)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 6)
CNOT(q[5], q[6])
# layer 1
Rx(q[0], PI / 6)
Ry(q[1], PI / 7)
Rz(q[2], PI / 8)
Rx(q[3], PI / 2)
Ry(q[4], PI / 3)
Rz(q[5], PI / 4)
Rx(q[6], PI / 5)
RZZ(q[0], q[1], PI / 7)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 4)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 6)
CNOT(q[5], q[6])
# layer 2
Ry(q[0], PI / 7)
Rz(q[1], PI / 8)
Rx(q[2], PI / 2)
Ry(q[3], PI / 3)
Rz(q[4], PI / 4)
Rx(q[5], PI / 5)
Ry(q[6], PI / 6)
RZZ(q[0], q[1], PI / 7)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 4)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 6)
CNOT(q[5], q[6])
print(engine_nnz())
print(measure_all(q, shots=128))
}
060 · Variational Pattern 60
# Generated variational circuit pattern 60
simulate(3, engine="sparse") {
let q = quantum_register(3)
H_all()
# layer 0
Rx(q[0], PI / 6)
Ry(q[1], PI / 7)
Rz(q[2], PI / 8)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 4)
print(engine_nnz())
print(measure_all(q, shots=128))
}
061 · Variational Pattern 61
# Generated variational circuit pattern 61
simulate(4, engine="sparse") {
let q = quantum_register(4)
H_all()
# layer 0
Ry(q[0], PI / 7)
Rz(q[1], PI / 8)
Rx(q[2], PI / 2)
Ry(q[3], PI / 3)
RZZ(q[0], q[1], PI / 4)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 6)
# layer 1
Rz(q[0], PI / 8)
Rx(q[1], PI / 2)
Ry(q[2], PI / 3)
Rz(q[3], PI / 4)
RZZ(q[0], q[1], PI / 4)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 6)
print(engine_nnz())
print(measure_all(q, shots=128))
}
062 · Variational Pattern 62
# Generated variational circuit pattern 62
simulate(5, engine="sparse") {
let q = quantum_register(5)
H_all()
# layer 0
Rz(q[0], PI / 8)
Rx(q[1], PI / 2)
Ry(q[2], PI / 3)
Rz(q[3], PI / 4)
Rx(q[4], PI / 5)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 6)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 3)
# layer 1
Rx(q[0], PI / 2)
Ry(q[1], PI / 3)
Rz(q[2], PI / 4)
Rx(q[3], PI / 5)
Ry(q[4], PI / 6)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 6)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 3)
# layer 2
Ry(q[0], PI / 3)
Rz(q[1], PI / 4)
Rx(q[2], PI / 5)
Ry(q[3], PI / 6)
Rz(q[4], PI / 7)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 6)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 3)
print(engine_nnz())
print(measure_all(q, shots=128))
}
063 · Variational Pattern 63
# Generated variational circuit pattern 63
simulate(6, engine="sparse") {
let q = quantum_register(6)
H_all()
# layer 0
Rx(q[0], PI / 2)
Ry(q[1], PI / 3)
Rz(q[2], PI / 4)
Rx(q[3], PI / 5)
Ry(q[4], PI / 6)
Rz(q[5], PI / 7)
RZZ(q[0], q[1], PI / 6)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 3)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 5)
print(engine_nnz())
print(measure_all(q, shots=128))
}
064 · Variational Pattern 64
# Generated variational circuit pattern 64
simulate(7, engine="sparse") {
let q = quantum_register(7)
H_all()
# layer 0
Ry(q[0], PI / 3)
Rz(q[1], PI / 4)
Rx(q[2], PI / 5)
Ry(q[3], PI / 6)
Rz(q[4], PI / 7)
Rx(q[5], PI / 8)
Ry(q[6], PI / 2)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 3)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 5)
CNOT(q[4], q[5])
RZZ(q[5], q[6], PI / 7)
# layer 1
Rz(q[0], PI / 4)
Rx(q[1], PI / 5)
Ry(q[2], PI / 6)
Rz(q[3], PI / 7)
Rx(q[4], PI / 8)
Ry(q[5], PI / 2)
Rz(q[6], PI / 3)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 3)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 5)
CNOT(q[4], q[5])
RZZ(q[5], q[6], PI / 7)
print(engine_nnz())
print(measure_all(q, shots=128))
}
065 · Variational Pattern 65
# Generated variational circuit pattern 65
simulate(3, engine="sparse") {
let q = quantum_register(3)
H_all()
# layer 0
Rz(q[0], PI / 4)
Rx(q[1], PI / 5)
Ry(q[2], PI / 6)
RZZ(q[0], q[1], PI / 3)
CNOT(q[1], q[2])
# layer 1
Rx(q[0], PI / 5)
Ry(q[1], PI / 6)
Rz(q[2], PI / 7)
RZZ(q[0], q[1], PI / 3)
CNOT(q[1], q[2])
# layer 2
Ry(q[0], PI / 6)
Rz(q[1], PI / 7)
Rx(q[2], PI / 8)
RZZ(q[0], q[1], PI / 3)
CNOT(q[1], q[2])
print(engine_nnz())
print(measure_all(q, shots=128))
}
066 · Variational Pattern 66
# Generated variational circuit pattern 66
simulate(4, engine="sparse") {
let q = quantum_register(4)
H_all()
# layer 0
Rx(q[0], PI / 5)
Ry(q[1], PI / 6)
Rz(q[2], PI / 7)
Rx(q[3], PI / 8)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 5)
CNOT(q[2], q[3])
print(engine_nnz())
print(measure_all(q, shots=128))
}
067 · Variational Pattern 67
# Generated variational circuit pattern 67
simulate(5, engine="sparse") {
let q = quantum_register(5)
H_all()
# layer 0
Ry(q[0], PI / 6)
Rz(q[1], PI / 7)
Rx(q[2], PI / 8)
Ry(q[3], PI / 2)
Rz(q[4], PI / 3)
RZZ(q[0], q[1], PI / 5)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 7)
CNOT(q[3], q[4])
# layer 1
Rz(q[0], PI / 7)
Rx(q[1], PI / 8)
Ry(q[2], PI / 2)
Rz(q[3], PI / 3)
Rx(q[4], PI / 4)
RZZ(q[0], q[1], PI / 5)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 7)
CNOT(q[3], q[4])
print(engine_nnz())
print(measure_all(q, shots=128))
}
068 · Variational Pattern 68
# Generated variational circuit pattern 68
simulate(6, engine="sparse") {
let q = quantum_register(6)
H_all()
# layer 0
Rz(q[0], PI / 7)
Rx(q[1], PI / 8)
Ry(q[2], PI / 2)
Rz(q[3], PI / 3)
Rx(q[4], PI / 4)
Ry(q[5], PI / 5)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 7)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 4)
CNOT(q[4], q[5])
# layer 1
Rx(q[0], PI / 8)
Ry(q[1], PI / 2)
Rz(q[2], PI / 3)
Rx(q[3], PI / 4)
Ry(q[4], PI / 5)
Rz(q[5], PI / 6)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 7)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 4)
CNOT(q[4], q[5])
# layer 2
Ry(q[0], PI / 2)
Rz(q[1], PI / 3)
Rx(q[2], PI / 4)
Ry(q[3], PI / 5)
Rz(q[4], PI / 6)
Rx(q[5], PI / 7)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 7)
CNOT(q[2], q[3])
RZZ(q[3], q[4], PI / 4)
CNOT(q[4], q[5])
print(engine_nnz())
print(measure_all(q, shots=128))
}
069 · Variational Pattern 69
# Generated variational circuit pattern 69
simulate(7, engine="sparse") {
let q = quantum_register(7)
H_all()
# layer 0
Rx(q[0], PI / 8)
Ry(q[1], PI / 2)
Rz(q[2], PI / 3)
Rx(q[3], PI / 4)
Ry(q[4], PI / 5)
Rz(q[5], PI / 6)
Rx(q[6], PI / 7)
RZZ(q[0], q[1], PI / 7)
CNOT(q[1], q[2])
RZZ(q[2], q[3], PI / 4)
CNOT(q[3], q[4])
RZZ(q[4], q[5], PI / 6)
CNOT(q[5], q[6])
print(engine_nnz())
print(measure_all(q, shots=128))
}
070 · Variational Pattern 70
# Generated variational circuit pattern 70
simulate(3, engine="sparse") {
let q = quantum_register(3)
H_all()
# layer 0
Ry(q[0], PI / 2)
Rz(q[1], PI / 3)
Rx(q[2], PI / 4)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 4)
# layer 1
Rz(q[0], PI / 3)
Rx(q[1], PI / 4)
Ry(q[2], PI / 5)
CNOT(q[0], q[1])
RZZ(q[1], q[2], PI / 4)
print(engine_nnz())
print(measure_all(q, shots=128))
}
071 · Phase Kickback
# phase_kickback example 71
simulate(7, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(7)
X(q[0])
H_all()
for i in range(6) {
CP(q[i + 1], q[0], PI / (i + 2))
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
072 · Hidden Shift
# hidden_shift example 72
simulate(4, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(4)
H_all()
for i in range(4) {
Rz(q[i], PI / (i + 2))
}
for i in range(3) {
CNOT(q[i], q[i + 1])
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
073 · Qft Phase Grid
# qft_phase_grid example 73
simulate(5, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(5)
X(q[0])
X(q[2])
qft(q)
Rz(q[1], PI / 7)
iqft(q)
print(engine_nnz())
print(measure_all(q, shots=128))
}
074 · Entangled Ladder
# entangled_ladder example 74
simulate(6, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(6)
H(q[0])
for i in range(5) {
CNOT(q[i], q[i + 1])
RZZ(q[i], q[i + 1], PI / 5)
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
075 · Hardware Efficient Ansatz
# hardware_efficient_ansatz example 75
simulate(7, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(7)
for layer in range(3) {
for i in range(7) {
Ry(q[i], PI / (layer + i + 2))
Rz(q[i], PI / (layer + i + 3))
}
for i in range(6) {
CNOT(q[i], q[i + 1])
}
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
076 · Maxcut Ansatz
# maxcut_ansatz example 76
simulate(4, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(4)
H_all()
for i in range(3) {
RZZ(q[i], q[i + 1], PI / 4)
}
Rx_all(PI / 6)
print(engine_nnz())
print(measure_all(q, shots=128))
}
077 · Qml Feature Map
# qml_feature_map example 77
simulate(5, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(5)
let x = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7][: 5]
for i in range(5) {
H(q[i])
Rz(q[i], x[i])
}
for i in range(4) {
RZZ(q[i], q[i + 1], x[i] * x[i + 1])
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
078 · Controlled Rotation Bank
# controlled_rotation_bank example 78
simulate(6, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(6)
H(q[0])
for i in range(1, 6) {
CRz(q[0], q[i], PI / (i + 1))
CRx(q[0], q[i], PI / (i + 2))
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
079 · Multi Control Demo
# multi_control_demo example 79
simulate(7, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(7)
for i in range(6) {
X(q[i])
}
MCX(q[0], q[1], q[2], q[6])
print(engine_nnz())
print(measure_all(q, shots=128))
}
080 · Sparse Large Index
# sparse_large_index example 80
simulate(4, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(4)
H(q[0])
CNOT(q[0], q[3])
RZZ(q[0], q[3], PI / 9)
print(engine_nnz())
print(measure_all(q, shots=128))
}
081 · Phase Kickback
# phase_kickback example 81
simulate(5, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(5)
X(q[0])
H_all()
for i in range(4) {
CP(q[i + 1], q[0], PI / (i + 2))
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
082 · Hidden Shift
# hidden_shift example 82
simulate(6, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(6)
H_all()
for i in range(6) {
Rz(q[i], PI / (i + 2))
}
for i in range(5) {
CNOT(q[i], q[i + 1])
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
083 · Qft Phase Grid
# qft_phase_grid example 83
simulate(7, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(7)
X(q[0])
X(q[2])
qft(q)
Rz(q[1], PI / 7)
iqft(q)
print(engine_nnz())
print(measure_all(q, shots=128))
}
084 · Entangled Ladder
# entangled_ladder example 84
simulate(4, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(4)
H(q[0])
for i in range(3) {
CNOT(q[i], q[i + 1])
RZZ(q[i], q[i + 1], PI / 5)
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
085 · Hardware Efficient Ansatz
# hardware_efficient_ansatz example 85
simulate(5, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(5)
for layer in range(3) {
for i in range(5) {
Ry(q[i], PI / (layer + i + 2))
Rz(q[i], PI / (layer + i + 3))
}
for i in range(4) {
CNOT(q[i], q[i + 1])
}
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
086 · Maxcut Ansatz
# maxcut_ansatz example 86
simulate(6, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(6)
H_all()
for i in range(5) {
RZZ(q[i], q[i + 1], PI / 4)
}
Rx_all(PI / 6)
print(engine_nnz())
print(measure_all(q, shots=128))
}
087 · Qml Feature Map
# qml_feature_map example 87
simulate(7, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(7)
let x = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7][: 7]
for i in range(7) {
H(q[i])
Rz(q[i], x[i])
}
for i in range(6) {
RZZ(q[i], q[i + 1], x[i] * x[i + 1])
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
088 · Controlled Rotation Bank
# controlled_rotation_bank example 88
simulate(4, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(4)
H(q[0])
for i in range(1, 4) {
CRz(q[0], q[i], PI / (i + 1))
CRx(q[0], q[i], PI / (i + 2))
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
089 · Multi Control Demo
# multi_control_demo example 89
simulate(5, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(5)
for i in range(4) {
X(q[i])
}
MCX(q[0], q[1], q[2], q[4])
print(engine_nnz())
print(measure_all(q, shots=128))
}
090 · Sparse Large Index
# sparse_large_index example 90
simulate(6, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(6)
H(q[0])
CNOT(q[0], q[5])
RZZ(q[0], q[5], PI / 9)
print(engine_nnz())
print(measure_all(q, shots=128))
}
091 · Phase Kickback
# phase_kickback example 91
simulate(7, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(7)
X(q[0])
H_all()
for i in range(6) {
CP(q[i + 1], q[0], PI / (i + 2))
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
092 · Hidden Shift
# hidden_shift example 92
simulate(4, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(4)
H_all()
for i in range(4) {
Rz(q[i], PI / (i + 2))
}
for i in range(3) {
CNOT(q[i], q[i + 1])
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
093 · Qft Phase Grid
# qft_phase_grid example 93
simulate(5, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(5)
X(q[0])
X(q[2])
qft(q)
Rz(q[1], PI / 7)
iqft(q)
print(engine_nnz())
print(measure_all(q, shots=128))
}
094 · Entangled Ladder
# entangled_ladder example 94
simulate(6, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(6)
H(q[0])
for i in range(5) {
CNOT(q[i], q[i + 1])
RZZ(q[i], q[i + 1], PI / 5)
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
095 · Hardware Efficient Ansatz
# hardware_efficient_ansatz example 95
simulate(7, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(7)
for layer in range(3) {
for i in range(7) {
Ry(q[i], PI / (layer + i + 2))
Rz(q[i], PI / (layer + i + 3))
}
for i in range(6) {
CNOT(q[i], q[i + 1])
}
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
096 · Maxcut Ansatz
# maxcut_ansatz example 96
simulate(4, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(4)
H_all()
for i in range(3) {
RZZ(q[i], q[i + 1], PI / 4)
}
Rx_all(PI / 6)
print(engine_nnz())
print(measure_all(q, shots=128))
}
097 · Qml Feature Map
# qml_feature_map example 97
simulate(5, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(5)
let x = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7][: 5]
for i in range(5) {
H(q[i])
Rz(q[i], x[i])
}
for i in range(4) {
RZZ(q[i], q[i + 1], x[i] * x[i + 1])
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
098 · Controlled Rotation Bank
# controlled_rotation_bank example 98
simulate(6, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(6)
H(q[0])
for i in range(1, 6) {
CRz(q[0], q[i], PI / (i + 1))
CRx(q[0], q[i], PI / (i + 2))
}
print(engine_nnz())
print(measure_all(q, shots=128))
}
099 · Multi Control Demo
# multi_control_demo example 99
simulate(7, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(7)
for i in range(6) {
X(q[i])
}
MCX(q[0], q[1], q[2], q[6])
print(engine_nnz())
print(measure_all(q, shots=128))
}
100 · Sparse Large Index
# sparse_large_index example 100
simulate(4, engine="sharded", n_shards=4, workers=2) {
let q = quantum_register(4)
H(q[0])
CNOT(q[0], q[3])
RZZ(q[0], q[3], PI / 9)
print(engine_nnz())
print(measure_all(q, shots=128))
}
Programs 101–200
101 · Stabilizer Ghz 1000
# 1000-qubit Clifford GHZ smoke test; exact tableau, no dense expansion.
simulate(1000, engine="stabilizer", seed=7) {
H(0)
for i in range(0, 999) {
CNOT(i, i + 1)
}
print(measure_all(shots=8))
}
102 · Mps Low Entanglement Chain
# Low-entanglement MPS chain with small bond dimension.
simulate(32, engine="mps", max_bond_dim=32, seed=3) {
for i in range(0, 32) {
Ry(i, 0.1)
}
for i in range(0, 31) {
CNOT(i, i + 1)
}
print(measure_all(shots=16))
}
103 · Density Depolarizing Noise
# Density-matrix noisy Bell state with depolarizing noise.
simulate(2, engine="density", seed=5) {
H(0)
CNOT(0, 1)
noise_depolarize(0, 0.05)
noise_depolarize(1, 0.05)
print(probabilities())
}
104 · Density Amplitude Damping
# Amplitude damping drives |1> toward |0>.
simulate(1, engine="density", seed=5) {
X(0)
noise_amplitude_damping(0, 0.30)
print(probabilities())
}
105 · Hybrid Backend Selection
# Hybrid chooses stabilizer for Clifford circuits and sparse/MPS otherwise.
simulate(4, engine="stabilizer", seed=11) {
H(0)
CNOT(0, 1)
CNOT(1, 2)
CNOT(2, 3)
print(measure_all(shots=8))
}
106 · Optimizer Cancel Rotations
# Optimizer is available from Python API; in DSL use direct simplified code.
simulate(1, seed=1) {
H(0)
H(0)
Rz(0, 0.25)
Rz(0, -0.25)
print(probabilities())
}
107 · Gpu Backend Small
# GPU backend syntax reference. Uncomment the simulate block after installing sansqrit[gpu].
# simulate(3, engine="gpu", seed=1) {
# H(0)
# CNOT(0, 1)
# Rz(2, 0.4)
# print(measure_all(shots=8))
# }
print("GPU example: install sansqrit[gpu], then uncomment the simulate block.")
108 · Qiskit Interop Reference
# Interop is primarily Python API: sansqrit.interop.to_qiskit(Circuit(...)).
# DSL can still export QASM for external tools.
simulate(2, seed=2) {
H(0)
CNOT(0, 1)
print(export_qasm3())
}
109 · Large Sparse 150 Qubits
# 150 logical qubits with sparse state. Avoid H_all on all 150 unless you expect expansion.
simulate(150, engine="sparse", seed=9) {
X(149)
H(0)
CNOT(0, 149)
print(engine_nnz())
print(measure_all(shots=8))
}
110 · Mps Qft Lite
# Small QFT-style tensor run. For large QFT, bond growth may require high max_bond_dim.
simulate(8, engine="mps", max_bond_dim=64, seed=4) {
X(0)
qft()
print(measure_all(shots=16))
}
111 · 150Q Sensor Fusion 111
# Example 111: 150-qubit real-time sensor fusion anomaly flag.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=111) {
let q = quantum_register(150)
X(q[32])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[32], q[102])
Rz(q[99], PI / 23)
Phase(q[149], PI / 33)
print("real-time sensor fusion anomaly flag")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
112 · 150Q Satellite Telemetry 112
# Example 112: 150-qubit satellite telemetry sparse state update.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=112) {
let q = quantum_register(150)
X(q[39])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[39], q[115])
Rz(q[116], PI / 16)
Phase(q[149], PI / 34)
print("satellite telemetry sparse state update")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
113 · 150Q Network Intrusion 113
# Example 113: 150-qubit network intrusion signature superposition.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=113) {
let q = quantum_register(150)
X(q[46])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[46], q[128])
Rz(q[133], PI / 17)
Phase(q[149], PI / 35)
print("network intrusion signature superposition")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
114 · 150Q Portfolio Risk 114
# Example 114: 150-qubit portfolio risk qubit flagging.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=114) {
let q = quantum_register(150)
X(q[53])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[53], q[141])
Rz(q[1], PI / 18)
Phase(q[149], PI / 36)
print("portfolio risk qubit flagging")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
115 · 150Q Drug Screening 115
# Example 115: 150-qubit drug candidate sparse oracle marker.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=115) {
let q = quantum_register(150)
X(q[60])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[60], q[5])
Rz(q[18], PI / 19)
Phase(q[149], PI / 32)
print("drug candidate sparse oracle marker")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
116 · 150Q Battery Material 116
# Example 116: 150-qubit battery material candidate phase tag.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=116) {
let q = quantum_register(150)
X(q[67])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[67], q[18])
Rz(q[35], PI / 20)
Phase(q[149], PI / 33)
print("battery material candidate phase tag")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
117 · 150Q Smart Grid 117
# Example 117: 150-qubit smart grid load-balancing state flag.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=117) {
let q = quantum_register(150)
X(q[74])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[74], q[31])
Rz(q[52], PI / 21)
Phase(q[149], PI / 34)
print("smart grid load-balancing state flag")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
118 · 150Q Robotics Path 118
# Example 118: 150-qubit robotics path branch marker.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=118) {
let q = quantum_register(150)
X(q[81])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[81], q[44])
Rz(q[69], PI / 22)
Phase(q[149], PI / 35)
print("robotics path branch marker")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
119 · 150Q Climate Event 119
# Example 119: 150-qubit climate event sparse alert.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=119) {
let q = quantum_register(150)
X(q[88])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[88], q[57])
Rz(q[86], PI / 23)
Phase(q[149], PI / 36)
print("climate event sparse alert")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
120 · 150Q Factory Quality 120
# Example 120: 150-qubit factory quality-control qubit register.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=120) {
let q = quantum_register(150)
X(q[95])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[95], q[70])
Rz(q[103], PI / 16)
Phase(q[149], PI / 32)
print("factory quality-control qubit register")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
121 · 150Q Traffic Routing 121
# Example 121: 150-qubit traffic routing decision bit.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=121) {
let q = quantum_register(150)
X(q[102])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[102], q[83])
Rz(q[120], PI / 17)
Phase(q[149], PI / 33)
print("traffic routing decision bit")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
122 · 150Q Fraud Detection 122
# Example 122: 150-qubit fraud detection sparse score marker.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=122) {
let q = quantum_register(150)
X(q[109])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[109], q[96])
Rz(q[137], PI / 18)
Phase(q[149], PI / 34)
print("fraud detection sparse score marker")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
123 · 150Q Genomics Variant 123
# Example 123: 150-qubit genomics variant marker.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=123) {
let q = quantum_register(150)
X(q[116])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[116], q[109])
Rz(q[5], PI / 19)
Phase(q[149], PI / 35)
print("genomics variant marker")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
124 · 150Q Seismic Monitor 124
# Example 124: 150-qubit seismic event marker.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=124) {
let q = quantum_register(150)
X(q[123])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[123], q[122])
Rz(q[22], PI / 20)
Phase(q[149], PI / 36)
print("seismic event marker")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
125 · 150Q Iot Edge 125
# Example 125: 150-qubit IoT edge telemetry marker.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=125) {
let q = quantum_register(150)
X(q[130])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[130], q[135])
Rz(q[39], PI / 21)
Phase(q[149], PI / 32)
print("IoT edge telemetry marker")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
126 · 150Q Cyber Key Health 126
# Example 126: 150-qubit cyber key health monitor.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=126) {
let q = quantum_register(150)
X(q[137])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[137], q[148])
Rz(q[56], PI / 22)
Phase(q[149], PI / 33)
print("cyber key health monitor")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
127 · 150Q Medical Triage 127
# Example 127: 150-qubit medical triage sparse decision.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=127) {
let q = quantum_register(150)
X(q[144])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[144], q[12])
Rz(q[73], PI / 23)
Phase(q[149], PI / 34)
print("medical triage sparse decision")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
128 · 150Q Supply Chain 128
# Example 128: 150-qubit supply chain disruption indicator.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=128) {
let q = quantum_register(150)
X(q[2])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[2], q[25])
Rz(q[90], PI / 16)
Phase(q[149], PI / 35)
print("supply chain disruption indicator")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
129 · 150Q Water Network 129
# Example 129: 150-qubit water network pressure anomaly.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=129) {
let q = quantum_register(150)
X(q[9])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[9], q[38])
Rz(q[107], PI / 17)
Phase(q[149], PI / 36)
print("water network pressure anomaly")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
130 · 150Q Energy Market 130
# Example 130: 150-qubit energy market sparse branch.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=130) {
let q = quantum_register(150)
X(q[16])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[16], q[51])
Rz(q[124], PI / 18)
Phase(q[149], PI / 32)
print("energy market sparse branch")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
131 · 150Q Sensor Fusion 131
# Example 131: 150-qubit real-time sensor fusion anomaly flag.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=131) {
let q = quantum_register(150)
X(q[23])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[23], q[64])
Rz(q[141], PI / 19)
Phase(q[149], PI / 33)
print("real-time sensor fusion anomaly flag")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
132 · 150Q Satellite Telemetry 132
# Example 132: 150-qubit satellite telemetry sparse state update.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=132) {
let q = quantum_register(150)
X(q[30])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[30], q[77])
Rz(q[9], PI / 20)
Phase(q[149], PI / 34)
print("satellite telemetry sparse state update")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
133 · 150Q Network Intrusion 133
# Example 133: 150-qubit network intrusion signature superposition.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=133) {
let q = quantum_register(150)
X(q[37])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[37], q[90])
Rz(q[26], PI / 21)
Phase(q[149], PI / 35)
print("network intrusion signature superposition")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
134 · 150Q Portfolio Risk 134
# Example 134: 150-qubit portfolio risk qubit flagging.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=134) {
let q = quantum_register(150)
X(q[44])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[44], q[103])
Rz(q[43], PI / 22)
Phase(q[149], PI / 36)
print("portfolio risk qubit flagging")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
135 · 150Q Drug Screening 135
# Example 135: 150-qubit drug candidate sparse oracle marker.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=135) {
let q = quantum_register(150)
X(q[51])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[51], q[116])
Rz(q[60], PI / 23)
Phase(q[149], PI / 32)
print("drug candidate sparse oracle marker")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
136 · 150Q Battery Material 136
# Example 136: 150-qubit battery material candidate phase tag.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=136) {
let q = quantum_register(150)
X(q[58])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[58], q[129])
Rz(q[77], PI / 16)
Phase(q[149], PI / 33)
print("battery material candidate phase tag")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
137 · 150Q Smart Grid 137
# Example 137: 150-qubit smart grid load-balancing state flag.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=137) {
let q = quantum_register(150)
X(q[65])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[65], q[142])
Rz(q[94], PI / 17)
Phase(q[149], PI / 34)
print("smart grid load-balancing state flag")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
138 · 150Q Robotics Path 138
# Example 138: 150-qubit robotics path branch marker.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=138) {
let q = quantum_register(150)
X(q[72])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[72], q[6])
Rz(q[111], PI / 18)
Phase(q[149], PI / 35)
print("robotics path branch marker")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
139 · 150Q Climate Event 139
# Example 139: 150-qubit climate event sparse alert.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=139) {
let q = quantum_register(150)
X(q[79])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[79], q[19])
Rz(q[128], PI / 19)
Phase(q[149], PI / 36)
print("climate event sparse alert")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
140 · 150Q Factory Quality 140
# Example 140: 150-qubit factory quality-control qubit register.
# Design rule: touch only a few sparse basis branches so this stays feasible on local hardware.
simulate(150, engine="sharded", n_shards=16, workers=4, seed=140) {
let q = quantum_register(150)
X(q[86])
H(q[0])
CNOT(q[0], q[149])
CNOT(q[86], q[32])
Rz(q[145], PI / 20)
Phase(q[149], PI / 32)
print("factory quality-control qubit register")
print("logical_qubits", 150)
print("nonzero_amplitudes", engine_nnz())
print("sample", measure_all(q, shots=6))
}
141 · Stabilizer Clifford Comm 141
# Example 141: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(512, engine="stabilizer", seed=141) {
H(423)
S(423)
CNOT(423, 440)
CZ(440, 24)
SWAP(423, 24)
X(440)
Z(24)
print("clifford_comm")
print("logical_qubits", 512)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
142 · Stabilizer Graph State 142
# Example 142: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(768, engine="stabilizer", seed=142) {
H(426)
S(426)
CNOT(426, 443)
CZ(443, 539)
SWAP(426, 539)
X(443)
Z(539)
print("graph_state")
print("logical_qubits", 768)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
143 · Stabilizer Cluster State 143
# Example 143: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1024, engine="stabilizer", seed=143) {
H(429)
S(429)
CNOT(429, 446)
CZ(446, 542)
SWAP(429, 542)
X(446)
Z(542)
print("cluster_state")
print("logical_qubits", 1024)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
144 · Stabilizer Parity Monitor 144
# Example 144: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1280, engine="stabilizer", seed=144) {
H(432)
S(432)
CNOT(432, 449)
CZ(449, 545)
SWAP(432, 545)
X(449)
Z(545)
print("parity_monitor")
print("logical_qubits", 1280)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
145 · Stabilizer Surface Code Syndrome 145
# Example 145: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1536, engine="stabilizer", seed=145) {
H(435)
S(435)
CNOT(435, 452)
CZ(452, 548)
SWAP(435, 548)
X(452)
Z(548)
print("surface_code_syndrome")
print("logical_qubits", 1536)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
146 · Stabilizer Clifford Comm 146
# Example 146: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1792, engine="stabilizer", seed=146) {
H(438)
S(438)
CNOT(438, 455)
CZ(455, 551)
SWAP(438, 551)
X(455)
Z(551)
print("clifford_comm")
print("logical_qubits", 1792)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
147 · Stabilizer Graph State 147
# Example 147: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(512, engine="stabilizer", seed=147) {
H(441)
S(441)
CNOT(441, 458)
CZ(458, 42)
SWAP(441, 42)
X(458)
Z(42)
print("graph_state")
print("logical_qubits", 512)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
148 · Stabilizer Cluster State 148
# Example 148: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(768, engine="stabilizer", seed=148) {
H(444)
S(444)
CNOT(444, 461)
CZ(461, 557)
SWAP(444, 557)
X(461)
Z(557)
print("cluster_state")
print("logical_qubits", 768)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
149 · Stabilizer Parity Monitor 149
# Example 149: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1024, engine="stabilizer", seed=149) {
H(447)
S(447)
CNOT(447, 464)
CZ(464, 560)
SWAP(447, 560)
X(464)
Z(560)
print("parity_monitor")
print("logical_qubits", 1024)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
150 · Stabilizer Surface Code Syndrome 150
# Example 150: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1280, engine="stabilizer", seed=150) {
H(450)
S(450)
CNOT(450, 467)
CZ(467, 563)
SWAP(450, 563)
X(467)
Z(563)
print("surface_code_syndrome")
print("logical_qubits", 1280)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
151 · Stabilizer Clifford Comm 151
# Example 151: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1536, engine="stabilizer", seed=151) {
H(453)
S(453)
CNOT(453, 470)
CZ(470, 566)
SWAP(453, 566)
X(470)
Z(566)
print("clifford_comm")
print("logical_qubits", 1536)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
152 · Stabilizer Graph State 152
# Example 152: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1792, engine="stabilizer", seed=152) {
H(456)
S(456)
CNOT(456, 473)
CZ(473, 569)
SWAP(456, 569)
X(473)
Z(569)
print("graph_state")
print("logical_qubits", 1792)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
153 · Stabilizer Cluster State 153
# Example 153: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(512, engine="stabilizer", seed=153) {
H(459)
S(459)
CNOT(459, 476)
CZ(476, 60)
SWAP(459, 60)
X(476)
Z(60)
print("cluster_state")
print("logical_qubits", 512)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
154 · Stabilizer Parity Monitor 154
# Example 154: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(768, engine="stabilizer", seed=154) {
H(462)
S(462)
CNOT(462, 479)
CZ(479, 575)
SWAP(462, 575)
X(479)
Z(575)
print("parity_monitor")
print("logical_qubits", 768)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
155 · Stabilizer Surface Code Syndrome 155
# Example 155: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1024, engine="stabilizer", seed=155) {
H(465)
S(465)
CNOT(465, 482)
CZ(482, 578)
SWAP(465, 578)
X(482)
Z(578)
print("surface_code_syndrome")
print("logical_qubits", 1024)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
156 · Stabilizer Clifford Comm 156
# Example 156: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1280, engine="stabilizer", seed=156) {
H(468)
S(468)
CNOT(468, 485)
CZ(485, 581)
SWAP(468, 581)
X(485)
Z(581)
print("clifford_comm")
print("logical_qubits", 1280)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
157 · Stabilizer Graph State 157
# Example 157: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1536, engine="stabilizer", seed=157) {
H(471)
S(471)
CNOT(471, 488)
CZ(488, 584)
SWAP(471, 584)
X(488)
Z(584)
print("graph_state")
print("logical_qubits", 1536)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
158 · Stabilizer Cluster State 158
# Example 158: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1792, engine="stabilizer", seed=158) {
H(474)
S(474)
CNOT(474, 491)
CZ(491, 587)
SWAP(474, 587)
X(491)
Z(587)
print("cluster_state")
print("logical_qubits", 1792)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
159 · Stabilizer Parity Monitor 159
# Example 159: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(512, engine="stabilizer", seed=159) {
H(477)
S(477)
CNOT(477, 494)
CZ(494, 78)
SWAP(477, 78)
X(494)
Z(78)
print("parity_monitor")
print("logical_qubits", 512)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
160 · Stabilizer Surface Code Syndrome 160
# Example 160: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(768, engine="stabilizer", seed=160) {
H(480)
S(480)
CNOT(480, 497)
CZ(497, 593)
SWAP(480, 593)
X(497)
Z(593)
print("surface_code_syndrome")
print("logical_qubits", 768)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
161 · Stabilizer Clifford Comm 161
# Example 161: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1024, engine="stabilizer", seed=161) {
H(483)
S(483)
CNOT(483, 500)
CZ(500, 596)
SWAP(483, 596)
X(500)
Z(596)
print("clifford_comm")
print("logical_qubits", 1024)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
162 · Stabilizer Graph State 162
# Example 162: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1280, engine="stabilizer", seed=162) {
H(486)
S(486)
CNOT(486, 503)
CZ(503, 599)
SWAP(486, 599)
X(503)
Z(599)
print("graph_state")
print("logical_qubits", 1280)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
163 · Stabilizer Cluster State 163
# Example 163: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1536, engine="stabilizer", seed=163) {
H(489)
S(489)
CNOT(489, 506)
CZ(506, 602)
SWAP(489, 602)
X(506)
Z(602)
print("cluster_state")
print("logical_qubits", 1536)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
164 · Stabilizer Parity Monitor 164
# Example 164: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(1792, engine="stabilizer", seed=164) {
H(492)
S(492)
CNOT(492, 509)
CZ(509, 605)
SWAP(492, 605)
X(509)
Z(605)
print("parity_monitor")
print("logical_qubits", 1792)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
165 · Stabilizer Surface Code Syndrome 165
# Example 165: stabilizer backend for thousands-scale Clifford simulation.
# Clifford-only circuits use tableau memory instead of dense 2^n state vectors.
simulate(512, engine="stabilizer", seed=165) {
H(495)
S(495)
CNOT(495, 0)
CZ(0, 96)
SWAP(495, 96)
X(0)
Z(96)
print("surface_code_syndrome")
print("logical_qubits", 512)
print("one_shot_prefix", list(measure_all(shots=1).keys())[0][0:32])
}
166 · Mps Adiabatic Line 166
# Example 166: MPS/tensor-network low-entanglement adiabatic_line.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(24, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=166) {
let q = quantum_register(24)
for layer in range(4) {
H(q[layer % 24])
CNOT(q[layer % 24], q[(layer + 1) % 24])
Rz(q[(layer + 1) % 24], PI / (layer + 3))
}
print("adiabatic_line")
print("logical_qubits", 24)
print("shots", measure_all(q, shots=4))
}
167 · Mps Qft Lite 167
# Example 167: MPS/tensor-network low-entanglement qft_lite.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(28, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=167) {
let q = quantum_register(28)
for layer in range(5) {
H(q[layer % 28])
CNOT(q[layer % 28], q[(layer + 1) % 28])
Rz(q[(layer + 1) % 28], PI / (layer + 3))
}
print("qft_lite")
print("logical_qubits", 28)
print("shots", measure_all(q, shots=4))
}
168 · Mps Bond Dimension Probe 168
# Example 168: MPS/tensor-network low-entanglement bond_dimension_probe.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(32, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=168) {
let q = quantum_register(32)
for layer in range(3) {
H(q[layer % 32])
CNOT(q[layer % 32], q[(layer + 1) % 32])
Rz(q[(layer + 1) % 32], PI / (layer + 3))
}
print("bond_dimension_probe")
print("logical_qubits", 32)
print("shots", measure_all(q, shots=4))
}
169 · Mps Matrix Product Feature Map 169
# Example 169: MPS/tensor-network low-entanglement matrix_product_feature_map.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(36, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=169) {
let q = quantum_register(36)
for layer in range(4) {
H(q[layer % 36])
CNOT(q[layer % 36], q[(layer + 1) % 36])
Rz(q[(layer + 1) % 36], PI / (layer + 3))
}
print("matrix_product_feature_map")
print("logical_qubits", 36)
print("shots", measure_all(q, shots=4))
}
170 · Mps Spin Chain 170
# Example 170: MPS/tensor-network low-entanglement spin_chain.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(40, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=170) {
let q = quantum_register(40)
for layer in range(5) {
H(q[layer % 40])
CNOT(q[layer % 40], q[(layer + 1) % 40])
Rz(q[(layer + 1) % 40], PI / (layer + 3))
}
print("spin_chain")
print("logical_qubits", 40)
print("shots", measure_all(q, shots=4))
}
171 · Mps Adiabatic Line 171
# Example 171: MPS/tensor-network low-entanglement adiabatic_line.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(44, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=171) {
let q = quantum_register(44)
for layer in range(3) {
H(q[layer % 44])
CNOT(q[layer % 44], q[(layer + 1) % 44])
Rz(q[(layer + 1) % 44], PI / (layer + 3))
}
print("adiabatic_line")
print("logical_qubits", 44)
print("shots", measure_all(q, shots=4))
}
172 · Mps Qft Lite 172
# Example 172: MPS/tensor-network low-entanglement qft_lite.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(48, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=172) {
let q = quantum_register(48)
for layer in range(4) {
H(q[layer % 48])
CNOT(q[layer % 48], q[(layer + 1) % 48])
Rz(q[(layer + 1) % 48], PI / (layer + 3))
}
print("qft_lite")
print("logical_qubits", 48)
print("shots", measure_all(q, shots=4))
}
173 · Mps Bond Dimension Probe 173
# Example 173: MPS/tensor-network low-entanglement bond_dimension_probe.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(52, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=173) {
let q = quantum_register(52)
for layer in range(5) {
H(q[layer % 52])
CNOT(q[layer % 52], q[(layer + 1) % 52])
Rz(q[(layer + 1) % 52], PI / (layer + 3))
}
print("bond_dimension_probe")
print("logical_qubits", 52)
print("shots", measure_all(q, shots=4))
}
174 · Mps Matrix Product Feature Map 174
# Example 174: MPS/tensor-network low-entanglement matrix_product_feature_map.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(24, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=174) {
let q = quantum_register(24)
for layer in range(3) {
H(q[layer % 24])
CNOT(q[layer % 24], q[(layer + 1) % 24])
Rz(q[(layer + 1) % 24], PI / (layer + 3))
}
print("matrix_product_feature_map")
print("logical_qubits", 24)
print("shots", measure_all(q, shots=4))
}
175 · Mps Spin Chain 175
# Example 175: MPS/tensor-network low-entanglement spin_chain.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(28, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=175) {
let q = quantum_register(28)
for layer in range(4) {
H(q[layer % 28])
CNOT(q[layer % 28], q[(layer + 1) % 28])
Rz(q[(layer + 1) % 28], PI / (layer + 3))
}
print("spin_chain")
print("logical_qubits", 28)
print("shots", measure_all(q, shots=4))
}
176 · Mps Adiabatic Line 176
# Example 176: MPS/tensor-network low-entanglement adiabatic_line.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(32, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=176) {
let q = quantum_register(32)
for layer in range(5) {
H(q[layer % 32])
CNOT(q[layer % 32], q[(layer + 1) % 32])
Rz(q[(layer + 1) % 32], PI / (layer + 3))
}
print("adiabatic_line")
print("logical_qubits", 32)
print("shots", measure_all(q, shots=4))
}
177 · Mps Qft Lite 177
# Example 177: MPS/tensor-network low-entanglement qft_lite.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(36, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=177) {
let q = quantum_register(36)
for layer in range(3) {
H(q[layer % 36])
CNOT(q[layer % 36], q[(layer + 1) % 36])
Rz(q[(layer + 1) % 36], PI / (layer + 3))
}
print("qft_lite")
print("logical_qubits", 36)
print("shots", measure_all(q, shots=4))
}
178 · Mps Bond Dimension Probe 178
# Example 178: MPS/tensor-network low-entanglement bond_dimension_probe.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(40, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=178) {
let q = quantum_register(40)
for layer in range(4) {
H(q[layer % 40])
CNOT(q[layer % 40], q[(layer + 1) % 40])
Rz(q[(layer + 1) % 40], PI / (layer + 3))
}
print("bond_dimension_probe")
print("logical_qubits", 40)
print("shots", measure_all(q, shots=4))
}
179 · Mps Matrix Product Feature Map 179
# Example 179: MPS/tensor-network low-entanglement matrix_product_feature_map.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(44, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=179) {
let q = quantum_register(44)
for layer in range(5) {
H(q[layer % 44])
CNOT(q[layer % 44], q[(layer + 1) % 44])
Rz(q[(layer + 1) % 44], PI / (layer + 3))
}
print("matrix_product_feature_map")
print("logical_qubits", 44)
print("shots", measure_all(q, shots=4))
}
180 · Mps Spin Chain 180
# Example 180: MPS/tensor-network low-entanglement spin_chain.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(48, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=180) {
let q = quantum_register(48)
for layer in range(3) {
H(q[layer % 48])
CNOT(q[layer % 48], q[(layer + 1) % 48])
Rz(q[(layer + 1) % 48], PI / (layer + 3))
}
print("spin_chain")
print("logical_qubits", 48)
print("shots", measure_all(q, shots=4))
}
181 · Mps Adiabatic Line 181
# Example 181: MPS/tensor-network low-entanglement adiabatic_line.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(52, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=181) {
let q = quantum_register(52)
for layer in range(4) {
H(q[layer % 52])
CNOT(q[layer % 52], q[(layer + 1) % 52])
Rz(q[(layer + 1) % 52], PI / (layer + 3))
}
print("adiabatic_line")
print("logical_qubits", 52)
print("shots", measure_all(q, shots=4))
}
182 · Mps Qft Lite 182
# Example 182: MPS/tensor-network low-entanglement qft_lite.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(24, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=182) {
let q = quantum_register(24)
for layer in range(5) {
H(q[layer % 24])
CNOT(q[layer % 24], q[(layer + 1) % 24])
Rz(q[(layer + 1) % 24], PI / (layer + 3))
}
print("qft_lite")
print("logical_qubits", 24)
print("shots", measure_all(q, shots=4))
}
183 · Mps Bond Dimension Probe 183
# Example 183: MPS/tensor-network low-entanglement bond_dimension_probe.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(28, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=183) {
let q = quantum_register(28)
for layer in range(3) {
H(q[layer % 28])
CNOT(q[layer % 28], q[(layer + 1) % 28])
Rz(q[(layer + 1) % 28], PI / (layer + 3))
}
print("bond_dimension_probe")
print("logical_qubits", 28)
print("shots", measure_all(q, shots=4))
}
184 · Mps Matrix Product Feature Map 184
# Example 184: MPS/tensor-network low-entanglement matrix_product_feature_map.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(32, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=184) {
let q = quantum_register(32)
for layer in range(4) {
H(q[layer % 32])
CNOT(q[layer % 32], q[(layer + 1) % 32])
Rz(q[(layer + 1) % 32], PI / (layer + 3))
}
print("matrix_product_feature_map")
print("logical_qubits", 32)
print("shots", measure_all(q, shots=4))
}
185 · Mps Spin Chain 185
# Example 185: MPS/tensor-network low-entanglement spin_chain.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(36, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=185) {
let q = quantum_register(36)
for layer in range(5) {
H(q[layer % 36])
CNOT(q[layer % 36], q[(layer + 1) % 36])
Rz(q[(layer + 1) % 36], PI / (layer + 3))
}
print("spin_chain")
print("logical_qubits", 36)
print("shots", measure_all(q, shots=4))
}
186 · Mps Adiabatic Line 186
# Example 186: MPS/tensor-network low-entanglement adiabatic_line.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(40, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=186) {
let q = quantum_register(40)
for layer in range(3) {
H(q[layer % 40])
CNOT(q[layer % 40], q[(layer + 1) % 40])
Rz(q[(layer + 1) % 40], PI / (layer + 3))
}
print("adiabatic_line")
print("logical_qubits", 40)
print("shots", measure_all(q, shots=4))
}
187 · Mps Qft Lite 187
# Example 187: MPS/tensor-network low-entanglement qft_lite.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(44, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=187) {
let q = quantum_register(44)
for layer in range(4) {
H(q[layer % 44])
CNOT(q[layer % 44], q[(layer + 1) % 44])
Rz(q[(layer + 1) % 44], PI / (layer + 3))
}
print("qft_lite")
print("logical_qubits", 44)
print("shots", measure_all(q, shots=4))
}
188 · Mps Bond Dimension Probe 188
# Example 188: MPS/tensor-network low-entanglement bond_dimension_probe.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(48, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=188) {
let q = quantum_register(48)
for layer in range(5) {
H(q[layer % 48])
CNOT(q[layer % 48], q[(layer + 1) % 48])
Rz(q[(layer + 1) % 48], PI / (layer + 3))
}
print("bond_dimension_probe")
print("logical_qubits", 48)
print("shots", measure_all(q, shots=4))
}
189 · Mps Matrix Product Feature Map 189
# Example 189: MPS/tensor-network low-entanglement matrix_product_feature_map.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(52, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=189) {
let q = quantum_register(52)
for layer in range(3) {
H(q[layer % 52])
CNOT(q[layer % 52], q[(layer + 1) % 52])
Rz(q[(layer + 1) % 52], PI / (layer + 3))
}
print("matrix_product_feature_map")
print("logical_qubits", 52)
print("shots", measure_all(q, shots=4))
}
190 · Mps Spin Chain 190
# Example 190: MPS/tensor-network low-entanglement spin_chain.
# Requires optional NumPy extra: pip install sansqrit[tensor].
simulate(24, engine="mps", max_bond_dim=32, cutoff=1e-10, seed=190) {
let q = quantum_register(24)
for layer in range(4) {
H(q[layer % 24])
CNOT(q[layer % 24], q[(layer + 1) % 24])
Rz(q[(layer + 1) % 24], PI / (layer + 3))
}
print("spin_chain")
print("logical_qubits", 24)
print("shots", measure_all(q, shots=4))
}
191 · Noise Readout Channel 191
# Example 191: density-matrix/noise model readout_channel.
simulate(2, engine="density", seed=191) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_bit_flip(q[1], 0.020)
print("readout_channel")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
192 · Noise Amplitude Decay 192
# Example 192: density-matrix/noise model amplitude_decay.
simulate(2, engine="density", seed=192) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_amplitude_damping(q[1], 0.030)
print("amplitude_decay")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
193 · Noise Phase Noise 193
# Example 193: density-matrix/noise model phase_noise.
simulate(2, engine="density", seed=193) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_phase_flip(q[0], 0.040)
print("phase_noise")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
194 · Noise Depolarizing Benchmark 194
# Example 194: density-matrix/noise model depolarizing_benchmark.
simulate(2, engine="density", seed=194) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_depolarize(q[1], 0.050)
print("depolarizing_benchmark")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
195 · Noise Noisy Bell 195
# Example 195: density-matrix/noise model noisy_bell.
simulate(2, engine="density", seed=195) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_depolarize(q[0], 0.010)
print("noisy_bell")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
196 · Noise Readout Channel 196
# Example 196: density-matrix/noise model readout_channel.
simulate(2, engine="density", seed=196) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_bit_flip(q[1], 0.020)
print("readout_channel")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
197 · Noise Amplitude Decay 197
# Example 197: density-matrix/noise model amplitude_decay.
simulate(2, engine="density", seed=197) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_amplitude_damping(q[1], 0.030)
print("amplitude_decay")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
198 · Noise Phase Noise 198
# Example 198: density-matrix/noise model phase_noise.
simulate(2, engine="density", seed=198) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_phase_flip(q[0], 0.040)
print("phase_noise")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
199 · Noise Depolarizing Benchmark 199
# Example 199: density-matrix/noise model depolarizing_benchmark.
simulate(2, engine="density", seed=199) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_depolarize(q[1], 0.050)
print("depolarizing_benchmark")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
200 · Noise Noisy Bell 200
# Example 200: density-matrix/noise model noisy_bell.
simulate(2, engine="density", seed=200) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_depolarize(q[0], 0.010)
print("noisy_bell")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
Programs 201–300
201 · Noise Readout Channel 201
# Example 201: density-matrix/noise model readout_channel.
simulate(2, engine="density", seed=201) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_bit_flip(q[1], 0.020)
print("readout_channel")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
202 · Noise Amplitude Decay 202
# Example 202: density-matrix/noise model amplitude_decay.
simulate(2, engine="density", seed=202) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_amplitude_damping(q[1], 0.030)
print("amplitude_decay")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
203 · Noise Phase Noise 203
# Example 203: density-matrix/noise model phase_noise.
simulate(2, engine="density", seed=203) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_phase_flip(q[0], 0.040)
print("phase_noise")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
204 · Noise Depolarizing Benchmark 204
# Example 204: density-matrix/noise model depolarizing_benchmark.
simulate(2, engine="density", seed=204) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_depolarize(q[1], 0.050)
print("depolarizing_benchmark")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
205 · Noise Noisy Bell 205
# Example 205: density-matrix/noise model noisy_bell.
simulate(2, engine="density", seed=205) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_depolarize(q[0], 0.010)
print("noisy_bell")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
206 · Noise Readout Channel 206
# Example 206: density-matrix/noise model readout_channel.
simulate(2, engine="density", seed=206) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_bit_flip(q[1], 0.020)
print("readout_channel")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
207 · Noise Amplitude Decay 207
# Example 207: density-matrix/noise model amplitude_decay.
simulate(2, engine="density", seed=207) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_amplitude_damping(q[1], 0.030)
print("amplitude_decay")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
208 · Noise Phase Noise 208
# Example 208: density-matrix/noise model phase_noise.
simulate(2, engine="density", seed=208) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_phase_flip(q[0], 0.040)
print("phase_noise")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
209 · Noise Depolarizing Benchmark 209
# Example 209: density-matrix/noise model depolarizing_benchmark.
simulate(2, engine="density", seed=209) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_depolarize(q[1], 0.050)
print("depolarizing_benchmark")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
210 · Noise Noisy Bell 210
# Example 210: density-matrix/noise model noisy_bell.
simulate(2, engine="density", seed=210) {
let q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
noise_depolarize(q[0], 0.010)
print("noisy_bell")
print("probabilities", probabilities(q))
print("shots", measure_all(q, shots=16))
}
211 · Algorithm Grover Cyber Signature 211
# Example 211: algorithm-level application - grover_cyber_signature.
let tag = "grover_cyber_signature"
print("running", tag)
print(grover_search(5, 17, shots=64, seed=211))
212 · Algorithm Qaoa Logistics Triangle 212
# Example 212: algorithm-level application - qaoa_logistics_triangle.
let tag = "qaoa_logistics_triangle"
print("running", tag)
print(qaoa_maxcut(4, [(0,1), (1,2), (2,3), (3,0)], p=1, shots=64, seed=212))
213 · Algorithm Vqe Molecule Scan 213
# Example 213: algorithm-level application - vqe_molecule_scan.
let tag = "vqe_molecule_scan"
print("running", tag)
print(vqe_h2(0.735, max_iter=16, seed=213))
214 · Algorithm Phase Estimation Sensor 214
# Example 214: algorithm-level application - phase_estimation_sensor.
let tag = "phase_estimation_sensor"
print("running", tag)
print(quantum_phase_estimation(0.3125, 4, shots=64, seed=214))
215 · Algorithm Hhl Toy Linear System 215
# Example 215: algorithm-level application - hhl_toy_linear_system.
let tag = "hhl_toy_linear_system"
print("running", tag)
print(hhl_solve([[1.0, 0.0], [0.0, 2.0]], [1.0, 0.5]))
216 · Algorithm Bernstein Vazirani Secret 216
# Example 216: algorithm-level application - bernstein_vazirani_secret.
let tag = "bernstein_vazirani_secret"
print("running", tag)
print(bernstein_vazirani("101101"))
217 · Algorithm Deutsch Jozsa Balanced 217
# Example 217: algorithm-level application - deutsch_jozsa_balanced.
let tag = "deutsch_jozsa_balanced"
print("running", tag)
print(deutsch_jozsa(5, "balanced", seed=217))
218 · Algorithm Quantum Counting Inventory 218
# Example 218: algorithm-level application - quantum_counting_inventory.
let tag = "quantum_counting_inventory"
print("running", tag)
print(quantum_counting(8, 13, 5))
219 · Algorithm Amplitude Estimation Risk 219
# Example 219: algorithm-level application - amplitude_estimation_risk.
let tag = "amplitude_estimation_risk"
print("running", tag)
print(amplitude_estimation(0.18, 5))
220 · Algorithm Bb84 Key Distribution 220
# Example 220: algorithm-level application - bb84_key_distribution.
let tag = "bb84_key_distribution"
print("running", tag)
print(bb84_qkd(16, seed=220))
221 · Algorithm Grover Cyber Signature 221
# Example 221: algorithm-level application - grover_cyber_signature.
let tag = "grover_cyber_signature"
print("running", tag)
print(grover_search(5, 17, shots=64, seed=221))
222 · Algorithm Qaoa Logistics Triangle 222
# Example 222: algorithm-level application - qaoa_logistics_triangle.
let tag = "qaoa_logistics_triangle"
print("running", tag)
print(qaoa_maxcut(4, [(0,1), (1,2), (2,3), (3,0)], p=1, shots=64, seed=222))
223 · Algorithm Vqe Molecule Scan 223
# Example 223: algorithm-level application - vqe_molecule_scan.
let tag = "vqe_molecule_scan"
print("running", tag)
print(vqe_h2(0.735, max_iter=16, seed=223))
224 · Algorithm Phase Estimation Sensor 224
# Example 224: algorithm-level application - phase_estimation_sensor.
let tag = "phase_estimation_sensor"
print("running", tag)
print(quantum_phase_estimation(0.3125, 4, shots=64, seed=224))
225 · Algorithm Hhl Toy Linear System 225
# Example 225: algorithm-level application - hhl_toy_linear_system.
let tag = "hhl_toy_linear_system"
print("running", tag)
print(hhl_solve([[1.0, 0.0], [0.0, 2.0]], [1.0, 0.5]))
226 · Algorithm Bernstein Vazirani Secret 226
# Example 226: algorithm-level application - bernstein_vazirani_secret.
let tag = "bernstein_vazirani_secret"
print("running", tag)
print(bernstein_vazirani("101101"))
227 · Algorithm Deutsch Jozsa Balanced 227
# Example 227: algorithm-level application - deutsch_jozsa_balanced.
let tag = "deutsch_jozsa_balanced"
print("running", tag)
print(deutsch_jozsa(5, "balanced", seed=227))
228 · Algorithm Quantum Counting Inventory 228
# Example 228: algorithm-level application - quantum_counting_inventory.
let tag = "quantum_counting_inventory"
print("running", tag)
print(quantum_counting(8, 13, 5))
229 · Algorithm Amplitude Estimation Risk 229
# Example 229: algorithm-level application - amplitude_estimation_risk.
let tag = "amplitude_estimation_risk"
print("running", tag)
print(amplitude_estimation(0.18, 5))
230 · Algorithm Bb84 Key Distribution 230
# Example 230: algorithm-level application - bb84_key_distribution.
let tag = "bb84_key_distribution"
print("running", tag)
print(bb84_qkd(16, seed=230))
231 · Qml Feature Map 231
# Example 231: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(6, engine="sparse", seed=231) {
let q = quantum_register(6)
for i in range(6) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[6-1-i] * PI / 2)
}
for i in range(6-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
232 · Qml Feature Map 232
# Example 232: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(7, engine="sparse", seed=232) {
let q = quantum_register(7)
for i in range(7) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[7-1-i] * PI / 2)
}
for i in range(7-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
233 · Qml Feature Map 233
# Example 233: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(8, engine="sparse", seed=233) {
let q = quantum_register(8)
for i in range(8) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[8-1-i] * PI / 2)
}
for i in range(8-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
234 · Qml Feature Map 234
# Example 234: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(6, engine="sparse", seed=234) {
let q = quantum_register(6)
for i in range(6) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[6-1-i] * PI / 2)
}
for i in range(6-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
235 · Qml Feature Map 235
# Example 235: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(7, engine="sparse", seed=235) {
let q = quantum_register(7)
for i in range(7) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[7-1-i] * PI / 2)
}
for i in range(7-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
236 · Qml Feature Map 236
# Example 236: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(8, engine="sparse", seed=236) {
let q = quantum_register(8)
for i in range(8) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[8-1-i] * PI / 2)
}
for i in range(8-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
237 · Qml Feature Map 237
# Example 237: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(6, engine="sparse", seed=237) {
let q = quantum_register(6)
for i in range(6) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[6-1-i] * PI / 2)
}
for i in range(6-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
238 · Qml Feature Map 238
# Example 238: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(7, engine="sparse", seed=238) {
let q = quantum_register(7)
for i in range(7) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[7-1-i] * PI / 2)
}
for i in range(7-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
239 · Qml Feature Map 239
# Example 239: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(8, engine="sparse", seed=239) {
let q = quantum_register(8)
for i in range(8) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[8-1-i] * PI / 2)
}
for i in range(8-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
240 · Qml Feature Map 240
# Example 240: quantum ML feature map for tabular/scientific data.
let features = [0.12, 0.31, 0.07, 0.44, 0.23, 0.19, 0.27, 0.39]
simulate(6, engine="sparse", seed=240) {
let q = quantum_register(6)
for i in range(6) {
Ry(q[i], features[i] * PI)
Rz(q[i], features[6-1-i] * PI / 2)
}
for i in range(6-1) {
CNOT(q[i], q[i + 1])
}
print("qml_feature_map")
print("nnz", engine_nnz())
print(measure_all(q, shots=16))
}
241 · Qasm3 Export Climate Circuit
# Example 241: export a climate-risk sparse circuit to OpenQASM 3.
simulate(5, seed=241) {
H(0)
CNOT(0, 4)
Rz(3, PI/7)
print(export_qasm3())
}
242 · Qasm2 Export Network Circuit
# Example 242: export a network-routing circuit to OpenQASM 2.
simulate(4, seed=242) {
X(1)
H(0)
CNOT(0, 2)
print(export_qasm2())
}
243 · Distributed Cluster Template
# Example 243: real distributed cluster template.
# Start workers in separate shells, then uncomment the simulate block.
# python -m sansqrit.cluster --host 127.0.0.1 --port 9101
# python -m sansqrit.cluster --host 127.0.0.1 --port 9102
# simulate(12, engine="distributed", addresses=[("127.0.0.1", 9101), ("127.0.0.1", 9102)]) {
# H(0)
# CNOT(0, 11)
# print(measure_all(shots=4))
# }
print("distributed cluster template included; start workers before enabling")
244 · Gpu Cuda Template
# Example 244: GPU/CuPy backend template.
# Install CUDA/CuPy extra, then uncomment.
# simulate(6, engine="gpu", seed=244) {
# H(0)
# CNOT(0, 5)
# print(measure_all(shots=8))
# }
print("GPU template included; requires sansqrit[gpu] and CUDA")
245 · Hybrid Backend Template
# Example 245: hybrid backend selection template.
simulate(150, engine="sharded", n_shards=12, seed=245) {
X(149)
H(0)
CNOT(0, 149)
print("hybrid-style sparse branch", engine_nnz())
}
246 · Formal Verification Qasm Reference
# Example 246: verification through QASM export / external SDK comparison.
simulate(3, seed=246) {
H(0)
CNOT(0, 1)
CNOT(1, 2)
print(export_qasm3())
}
247 · Optimizer Cancel Pairs
# Example 247: write circuits so the optimizer can cancel inverse pairs.
simulate(4, seed=247) {
X(0)
X(0)
H(1)
H(1)
Rz(2, PI/8)
Rz(2, -PI/8)
print("optimizer-friendly cancellation pattern")
print(export_qasm3())
}
248 · Ai Training Minimal Pair
# Example 248: paired input-output style useful for AI training.
# Intent: create a Bell state and return probability dictionary.
simulate(2, seed=248) {
H(0)
CNOT(0, 1)
print(probabilities())
}
249 · Large Sparse Oracle 150Q
# Example 249: 150-qubit sparse oracle-style marker.
simulate(150, engine="sharded", n_shards=20, workers=4, seed=249) {
let q = quantum_register(150)
X(q[12])
X(q[77])
H(q[0])
CNOT(q[0], q[149])
MCZ(q[0], q[12], q[77], q[149])
print("150q oracle marker nnz", engine_nnz())
print(measure_all(q, shots=4))
}
250 · Large Stabilizer 4096Q
# Example 250: 4096-qubit Clifford/stabilizer monitoring pattern.
simulate(4096, engine="stabilizer", seed=250) {
H(0)
CNOT(0, 4095)
S(2048)
CZ(2048, 4095)
print("4096-qubit stabilizer circuit")
print(list(measure_all(shots=1).keys())[0][0:64])
}
251 · Precomputed Lookup 10Q
# 10-qubit packaged precomputed lookup demonstration
simulate(10) {
let q = quantum_register(10)
H(q[7])
SX(q[3])
SXdg(q[3])
X(q[9])
CNOT(q[7], q[9])
let p = probabilities(q)
}
252 · Lookup Vs Sparse 150Q
# 150-qubit sparse program: primitive gate lookup + sparse runtime transitions.
# Full embedded transition tables are intentionally capped at 10 qubits.
simulate(150) {
let q = quantum_register(150)
X(q[149])
H(q[0])
CNOT(q[0], q[149])
let p = probabilities(q)
}
253 · Qec Bit Flip Correct
simulate(5) {
let q = quantum_register(5)
let l = qec_logical("bit_flip", base=0)
qec_encode(l)
qec_inject_error(l, "X", 1)
let result = qec_syndrome_and_correct(l, ancilla_base=3)
qec_decode(l)
let counts = measure_all(q)
}
254 · Qec Phase Flip Correct
simulate(5) {
let q = quantum_register(5)
let l = qec_logical("phase_flip", base=0)
qec_encode(l)
qec_inject_error(l, "Z", 2)
let syndrome = qec_syndrome(l, ancilla_base=3)
let corrections = qec_correct(l, syndrome)
qec_decode(l)
let counts = measure_all(q)
}
255 · Qec Repetition5 Layout
let code = qec_code("repetition", distance=5)
let l = qec_logical("repetition", base=0, distance=5)
let stabs = l.stabilizers()
let sx = l.logical_x_term()
let sz = l.logical_z_term()
256 · Qec Shor9 Encode
simulate(12) {
let q = quantum_register(12)
let l = qec_logical("shor9", base=0)
qec_encode(l)
logical_x(l)
let stabs = l.stabilizers()
let profile = lookup_profile()
}
257 · Qec Steane7 Syndrome Circuit
let l = qec_logical("steane7", base=0)
let circuit = qec_syndrome_circuit(l, ancilla_base=7)
let code = qec_code("steane7")
258 · Qec Five Qubit Lookup Decoder
let code = qec_code("five_qubit")
let l = qec_logical("five_qubit", base=0)
let stabs = l.stabilizers()
let lx = l.logical_x_term()
let lz = l.logical_z_term()
259 · Qec Surface3 Lattice
let lattice = qec_surface_lattice(3)
let data = lattice.data_qubits
let xchecks = lattice.x_checks
let zchecks = lattice.z_checks
let stabs = lattice.stabilizers()
260 · Qec Surface3 Code
let code = qec_code("surface", distance=3)
let l = qec_logical("surface", base=0, distance=3)
let stabs = l.stabilizers()
let circuit = qec_syndrome_circuit(l, ancilla_base=9)
261 · Qec Logical Cnot Bitflip
simulate(8) {
let q = quantum_register(8)
let a = qec_logical("bit_flip", base=0, name="a")
let b = qec_logical("bit_flip", base=3, name="b")
qec_encode(a)
qec_encode(b)
logical_x(a)
logical_cx(a, b)
let counts = measure_all(q)
}
262 · Qec Noise Density Bitflip
simulate(5, engine="density") {
let q = quantum_register(5)
let l = qec_logical("bit_flip", base=0)
qec_encode(l)
noise_bit_flip(q[1], 0.1)
let tr = current_engine().trace()
}
263 · Qec Codes Index
let codes = qec_codes()
let has_surface = "surface" in codes
let has_shor = "shor9" in codes
264 · Auto Backend Plan 120Q
let plan = plan_backend(120, [])
265 · Lookup Profile 10Q
simulate(10) {
let q = quantum_register(10)
H(q[7])
SX(q[3])
SXdg(q[3])
CNOT(q[7], q[9])
let profile = lookup_profile()
}
266 · Qec Stabilizer Syndrome Terms
let code = qec_code("bit_flip")
let l = qec_logical("bit_flip")
let stabs = l.stabilizers()
let syndrome_ops = qec_syndrome_circuit(l, ancilla_base=3)
267 · Qec Repetition7 Terms
let code = qec_code("repetition", distance=7)
let l = qec_logical("repetition", distance=7)
let stabs = l.stabilizers()
let lx = l.logical_x_term()
268 · Qec Surface5 Metadata
let code = qec_code("surface", distance=5)
let lattice = qec_surface_lattice(5)
let data_count = len(lattice.data_qubits)
let x_count = len(lattice.x_checks)
let z_count = len(lattice.z_checks)
269 · Qec Bitflip Manual Syndrome
simulate(5) {
let q = quantum_register(5)
let l = qec_logical("bit_flip")
qec_encode(l)
qec_inject_error(l, "X", 0)
let syndrome = qec_syndrome(l, ancilla_base=3)
let corrections = qec_correct(l, syndrome)
}
270 · Qec Logical Gates
simulate(5) {
let q = quantum_register(5)
let l = qec_logical("bit_flip")
qec_encode(l)
logical_x(l)
logical_z(l)
logical_h(l)
logical_s(l)
let counts = measure_all(q)
}
271 · Qec Shor9 Terms
let l = qec_logical("shor9")
let stabs = l.stabilizers()
let lx = l.logical_x_term()
let lz = l.logical_z_term()
272 · Qec Steane7 Terms
let l = qec_logical("steane7")
let stabs = l.stabilizers()
let lx = l.logical_x_term()
let lz = l.logical_z_term()
273 · Qec Five Qubit Terms
let l = qec_logical("five_qubit")
let stabs = l.stabilizers()
let lx = l.logical_x_term()
let lz = l.logical_z_term()
274 · Qec Surface Decoder Interface
let code = qec_code("surface", distance=3)
let l = qec_logical("surface", distance=3)
let ops = qec_syndrome_circuit(l, ancilla_base=9)
275 · Qec Ai Training Record
let record = {"task": "qec_bit_flip_correction", "dsl": "qec_logical plus qec_syndrome_and_correct", "code": qec_code("bit_flip").description}
276 · Hierarchical 120Q Local Blocks
# 120-qubit hierarchical tensor shards: local dense 10-qubit blocks.
simulate(120, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0) {
q = quantum_register(120)
shard block_A [0..9]
shard block_B [10..19]
shard block_L [110..119]
apply H on block_A
apply X on block_B
apply Z on block_L
print(hierarchical_report())
}
277 · Hierarchical 120Q Bridge Mps
# 120-qubit hierarchical tensor shards with a cross-block bridge.
simulate(120, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0) {
q = quantum_register(120)
shard block_A [0..9]
shard block_B [10..19]
H(q[9])
apply CNOT on q[9], q[10] bridge_mode=sparse
Z(q[10])
print(hierarchical_report())
}
278 · Climate 128Q Sparse Sensors
# 128-qubit climate sensor anomaly encoding using sparse/sharded execution.
simulate(128, engine="sharded", n_shards=16, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[3])
X(q[41])
X(q[90])
H(q[0])
CNOT(q[0], q[3])
Rz(q[41], PI / 8)
print("climate nnz", engine_nnz())
print(lookup_profile())
}
279 · Supply Chain 160Q Route Flags
# 160-qubit sparse route flags for supply-chain risk analysis.
simulate(160, engine="sharded", n_shards=20, workers=4, use_lookup=true) {
q = quantum_register(160)
for i in range(0, 160, 32) {
X(q[i])
}
H(q[1])
CNOT(q[1], q[33])
Rz(q[64], PI / 6)
print("supply chain shards", shards())
}
280 · Finance 128Q Portfolio Sparse Risk
# 128-qubit portfolio risk flags with sparse rotations.
simulate(128, engine="sharded", n_shards=16, workers=4) {
q = quantum_register(128)
X(q[7])
X(q[31])
X(q[88])
H(q[0])
CNOT(q[0], q[7])
RZZ(q[31], q[88], PI / 12)
print("finance plan", estimate_qubits(128))
}
281 · Cyber 144Q Stabilizer Threat Graph
# 144-qubit Clifford threat graph, safe for stabilizer execution.
simulate(144, engine="stabilizer") {
q = quantum_register(144)
for i in range(0, 143, 12) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
}
print("cyber sample", measure_all(shots=3))
}
282 · Telecom 130Q Hierarchical Blocks
# 130-qubit telecom channel model using 10-qubit hierarchical tensor blocks.
simulate(130, engine="hierarchical", block_size=10, use_lookup=true) {
q = quantum_register(130)
shard tower_0 [0..9]
shard tower_1 [10..19]
shard tower_2 [20..29]
apply H on tower_0
apply X on tower_1
apply Z on tower_2
print(hierarchical_report())
}
283 · Hierarchical 120Q Bridge Iot
# 120-qubit IoT bridge entanglement between adjacent 10-qubit blocks.
simulate(120, engine="hierarchical", block_size=10, cutoff=0.0, max_bond_dim=null) {
q = quantum_register(120)
H(q[9])
apply CNOT on q[9], q[10] bridge_mode=sparse
Z(q[10])
print(hierarchical_report())
}
284 · Drug Discovery 124Q Mps Feature Map
# 124-qubit low-entanglement molecule feature map using MPS.
simulate(124, engine="mps", max_bond_dim=32, cutoff=1e-12) {
q = quantum_register(124)
for i in range(0, 12) {
Ry(q[i], 0.01 * (i + 1))
}
for i in range(0, 11) {
CNOT(q[i], q[i + 1])
}
print("drug discovery backend", sansqrit_backends())
}
285 · Satellite 132Q Qec Link
# Satellite link QEC control plane in a larger 132-qubit sparse register.
simulate(132, engine="sparse") {
q = quantum_register(132)
logical = qec_logical("bit_flip", base=0)
qec_encode(logical)
qec_inject_error(logical, "X", 2)
print(qec_syndrome_and_correct(logical, ancilla_base=3))
X(q[131])
print(engine_nnz())
}
286 · Hardware Export 121Q Openqasm3
# 121-qubit sparse circuit exported as provider-neutral OpenQASM 3 payload.
simulate(121, engine="sparse") {
q = quantum_register(121)
X(q[120])
H(q[0])
CNOT(q[0], q[1])
payload = export_hardware("azure")
print(payload["provider"])
print(payload["format"])
}
287 · Distributed 120Q Readiness Report
# Distributed-readiness diagnostics without requiring live workers.
print(sansqrit_doctor())
print(troubleshooting("distributed"))
print(hardware_targets())
288 · Troubleshooting Lookup Profile
# Lookup and troubleshooting introspection.
simulate(10, engine="sparse", use_lookup=true) {
q = quantum_register(10)
H(q[0])
SX(q[3])
CNOT(q[0], q[1])
print(lookup_profile())
print(lookup_architecture())
}
289 · Ai Training Dataset Record
# Generate AI/ML training metadata.
print(research_gaps())
print("training helpers available")
290 · Surface Code 121Q Control Register
# Surface-code helper embedded in a 121-qubit control register.
simulate(121, engine="sparse") {
q = quantum_register(121)
logical = qec_logical("surface", base=0, distance=3)
print(logical.stabilizers())
print(qec_stim_syndrome_text(logical, ancilla_base=9))
}
291 · Robotics 150Q Sparse Path Flags
# 150-qubit sparse robot path flags.
simulate(150, engine="sharded", n_shards=15, workers=4) {
q = quantum_register(150)
X(q[12])
X(q[77])
X(q[149])
H(q[2])
CNOT(q[2], q[12])
print("robotics", engine_nnz())
}
292 · Power Grid 150Q Fault Localization
# 150-qubit grid fault localization with sparse flags.
simulate(150, engine="sharded", n_shards=15) {
q = quantum_register(150)
X(q[5])
X(q[60])
H(q[0])
CNOT(q[0], q[5])
Rz(q[60], PI / 5)
print(shards())
}
293 · Port Logistics 150Q Hierarchical Yards
# 150-qubit port logistics model as 15 independent 10-qubit yards.
simulate(150, engine="hierarchical", block_size=10) {
q = quantum_register(150)
shard yard_0 [0..9]
shard yard_1 [10..19]
shard yard_2 [20..29]
apply H on yard_0
apply X on yard_1
apply S on yard_2
print(hierarchical_report())
}
294 · Qkd 128Q Stabilizer Network
# 128-qubit Clifford QKD network skeleton.
simulate(128, engine="stabilizer") {
q = quantum_register(128)
for i in range(0, 64, 8) {
H(q[i])
CNOT(q[i], q[i + 64])
}
print(measure_all(shots=4))
}
295 · Aerospace 140Q Sensor Fusion
# Aerospace sensor-fusion sparse feature map.
simulate(140, engine="sharded", n_shards=14) {
q = quantum_register(140)
X(q[13])
X(q[72])
X(q[139])
H(q[1])
CNOT(q[1], q[13])
print(explain_120_qubits_dense())
}
296 · Lookup Profile 10Q Block Kernel
# Explicit 10-qubit lookup-profile demonstration.
simulate(10, engine="sparse", use_lookup=true) {
q = quantum_register(10)
for i in range(0, 10) {
H(q[i])
}
print(lookup_profile())
}
297 · Openqasm2 3 Export 122Q
# Export both OpenQASM 2 and OpenQASM 3 for a 122-qubit sparse circuit.
simulate(122, engine="sparse") {
q = quantum_register(122)
H(q[0])
CNOT(q[0], q[1])
X(q[121])
q3 = export_qasm3()
q2 = export_qasm2()
print(len(q3))
print(len(q2))
}
298 · Azure Payload 123Q Sparse
# Azure-style OpenQASM 3 payload metadata.
simulate(123, engine="sparse") {
q = quantum_register(123)
H(q[0])
CNOT(q[0], q[2])
payload = export_hardware("azure")
print(payload["provider"])
print(payload["notes"])
}
299 · Pennylane Export 124Q Fallback
# PennyLane target listing and payload summary without requiring PennyLane install.
simulate(124, engine="sparse") {
q = quantum_register(124)
H(q[0])
CNOT(q[0], q[1])
print(hardware_payload_summary())
}
300 · City 1000Q Stabilizer Graph
# 1000-qubit Clifford city graph, safe for stabilizer tableau mode.
simulate(1000, engine="stabilizer") {
q = quantum_register(1000)
for i in range(0, 999, 50) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
}
print("city graph stabilizer sample", measure_all(shots=2))
}
Programs 301–400
301 · Scenario Climate Risk 01
# Scenario 001: Climate risk and extreme-weather sensor triage: scenario 01
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[13])
X(q[68])
X(q[59])
H(q[75])
CNOT(q[75], q[94])
Rz(q[75], PI / 5)
CZ(q[94], q[121])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
302 · Scenario Climate Risk 02
# Scenario 002: Climate risk and extreme-weather sensor triage: scenario 02
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[20])
X(q[97])
X(q[50])
H(q[44])
CNOT(q[44], q[23])
Rz(q[44], PI / 6)
CZ(q[23], q[58])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
303 · Scenario Climate Risk 03
# Scenario 003: Climate risk and extreme-weather sensor triage: scenario 03
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[81])
X(q[36])
X(q[61])
H(q[53])
CNOT(q[53], q[18])
Rz(q[53], PI / 7)
CZ(q[18], q[1])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
304 · Scenario Climate Risk 04
# Scenario 004: Climate risk and extreme-weather sensor triage: scenario 04
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[66])
X(q[115])
X(q[48])
H(q[94])
CNOT(q[94], q[33])
Rz(q[94], PI / 8)
CZ(q[33], q[72])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
305 · Scenario Climate Risk 05
# Scenario 005: Climate risk and extreme-weather sensor triage: scenario 05
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[119])
X(q[32])
X(q[109])
H(q[19])
CNOT(q[19], q[102])
Rz(q[19], PI / 4)
CZ(q[102], q[125])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
306 · Scenario Climate Risk 06
# Scenario 006: Climate risk and extreme-weather sensor triage: scenario 06
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[128])
X(q[83])
X(q[44])
H(q[20])
CNOT(q[20], q[19])
Rz(q[20], PI / 5)
CZ(q[19], q[66])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
307 · Scenario Climate Risk 07
# Scenario 007: Climate risk and extreme-weather sensor triage: scenario 07
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[61])
X(q[126])
X(q[19])
H(q[1])
CNOT(q[1], q[28])
Rz(q[1], PI / 6)
CZ(q[28], q[39])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
308 · Scenario Climate Risk 08
# Scenario 008: Climate risk and extreme-weather sensor triage: scenario 08
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[52])
X(q[131])
X(q[64])
H(q[80])
CNOT(q[80], q[119])
Rz(q[80], PI / 7)
CZ(q[119], q[86])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
309 · Scenario Climate Risk 09
# Scenario 009: Climate risk and extreme-weather sensor triage: scenario 09
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[107])
X(q[52])
X(q[105])
H(q[95])
CNOT(q[95], q[58])
Rz(q[95], PI / 8)
CZ(q[58], q[17])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
310 · Scenario Climate Risk 10
# Scenario 010: Climate risk and extreme-weather sensor triage: scenario 10
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[56])
X(q[49])
X(q[78])
H(q[28])
CNOT(q[28], q[63])
Rz(q[28], PI / 4)
CZ(q[63], q[38])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
311 · Scenario Climate Risk 11
# Scenario 011: Climate risk and extreme-weather sensor triage: scenario 11
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[113])
X(q[98])
X(q[29])
H(q[95])
CNOT(q[95], q[74])
Rz(q[95], PI / 5)
CZ(q[74], q[11])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
312 · Scenario Climate Risk 12
# Scenario 012: Climate risk and extreme-weather sensor triage: scenario 12
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[102])
X(q[23])
X(q[120])
H(q[90])
CNOT(q[90], q[33])
Rz(q[90], PI / 6)
CZ(q[33], q[20])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
313 · Scenario Climate Risk 13
# Scenario 013: Climate risk and extreme-weather sensor triage: scenario 13
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[23])
X(q[92])
X(q[67])
H(q[107])
CNOT(q[107], q[86])
Rz(q[107], PI / 7)
CZ(q[86], q[37])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
314 · Scenario Climate Risk 14
# Scenario 014: Climate risk and extreme-weather sensor triage: scenario 14
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[12])
X(q[125])
X(q[26])
H(q[96])
CNOT(q[96], q[83])
Rz(q[96], PI / 8)
CZ(q[83], q[98])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
315 · Scenario Climate Risk 15
# Scenario 015: Climate risk and extreme-weather sensor triage: scenario 15
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[121])
X(q[66])
X(q[47])
H(q[37])
CNOT(q[37], q[24])
Rz(q[37], PI / 4)
CZ(q[24], q[79])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
316 · Scenario Climate Risk 16
# Scenario 016: Climate risk and extreme-weather sensor triage: scenario 16
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[98])
X(q[113])
X(q[14])
H(q[40])
CNOT(q[40], q[129])
Rz(q[40], PI / 5)
CZ(q[129], q[86])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
317 · Scenario Climate Risk 17
# Scenario 017: Climate risk and extreme-weather sensor triage: scenario 17
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[11])
X(q[52])
X(q[89])
H(q[47])
CNOT(q[47], q[38])
Rz(q[47], PI / 6)
CZ(q[38], q[1])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
318 · Scenario Climate Risk 18
# Scenario 018: Climate risk and extreme-weather sensor triage: scenario 18
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[128])
X(q[53])
X(q[122])
H(q[0])
CNOT(q[0], q[70])
Rz(q[0], PI / 7)
CZ(q[70], q[49])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
319 · Scenario Climate Risk 19
# Scenario 019: Climate risk and extreme-weather sensor triage: scenario 19
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[53])
X(q[62])
X(q[83])
H(q[97])
CNOT(q[97], q[108])
Rz(q[97], PI / 8)
CZ(q[108], q[43])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
320 · Scenario Climate Risk 20
# Scenario 020: Climate risk and extreme-weather sensor triage: scenario 20
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[58])
X(q[83])
X(q[16])
H(q[46])
CNOT(q[46], q[113])
Rz(q[46], PI / 4)
CZ(q[113], q[120])
print("scenario", "climate_risk", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
321 · Scenario Smart Grid 01
# Scenario 021: Smart-grid fault localization and energy routing: scenario 01
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[87])
X(q[120])
X(q[45])
H(q[3])
CNOT(q[3], q[14])
Rz(q[3], PI / 5)
CZ(q[14], q[62])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
322 · Scenario Smart Grid 02
# Scenario 022: Smart-grid fault localization and energy routing: scenario 02
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[30])
X(q[81])
X(q[102])
H(q[70])
CNOT(q[70], q[131])
Rz(q[70], PI / 6)
CZ(q[131], q[4])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
323 · Scenario Smart Grid 03
# Scenario 023: Smart-grid fault localization and energy routing: scenario 03
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[77])
X(q[82])
X(q[71])
H(q[41])
CNOT(q[41], q[128])
Rz(q[41], PI / 7)
CZ(q[128], q[139])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
324 · Scenario Smart Grid 04
# Scenario 024: Smart-grid fault localization and energy routing: scenario 04
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[76])
X(q[45])
X(q[102])
H(q[54])
CNOT(q[54], q[37])
Rz(q[54], PI / 8)
CZ(q[37], q[124])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
325 · Scenario Smart Grid 05
# Scenario 025: Smart-grid fault localization and energy routing: scenario 05
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[97])
X(q[144])
X(q[73])
H(q[67])
CNOT(q[67], q[82])
Rz(q[67], PI / 4)
CZ(q[82], q[33])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
326 · Scenario Smart Grid 06
# Scenario 026: Smart-grid fault localization and energy routing: scenario 06
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[64])
X(q[65])
X(q[6])
H(q[148])
CNOT(q[148], q[103])
Rz(q[148], PI / 5)
CZ(q[103], q[86])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
327 · Scenario Smart Grid 07
# Scenario 027: Smart-grid fault localization and energy routing: scenario 07
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[137])
X(q[22])
X(q[5])
H(q[27])
CNOT(q[27], q[136])
Rz(q[27], PI / 6)
CZ(q[136], q[7])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
328 · Scenario Smart Grid 08
# Scenario 028: Smart-grid fault localization and energy routing: scenario 08
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[10])
X(q[123])
X(q[4])
H(q[142])
CNOT(q[142], q[1])
Rz(q[142], PI / 7)
CZ(q[1], q[84])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
329 · Scenario Smart Grid 09
# Scenario 029: Smart-grid fault localization and energy routing: scenario 09
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[151])
X(q[138])
X(q[53])
H(q[157])
CNOT(q[157], q[32])
Rz(q[157], PI / 8)
CZ(q[32], q[23])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
330 · Scenario Smart Grid 10
# Scenario 030: Smart-grid fault localization and energy routing: scenario 10
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[102])
X(q[89])
X(q[78])
H(q[132])
CNOT(q[132], q[117])
Rz(q[132], PI / 4)
CZ(q[117], q[98])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
331 · Scenario Smart Grid 11
# Scenario 031: Smart-grid fault localization and energy routing: scenario 11
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[41])
X(q[10])
X(q[119])
H(q[141])
CNOT(q[141], q[40])
Rz(q[141], PI / 5)
CZ(q[40], q[127])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
332 · Scenario Smart Grid 12
# Scenario 032: Smart-grid fault localization and energy routing: scenario 12
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[90])
X(q[117])
X(q[62])
H(q[138])
CNOT(q[138], q[141])
Rz(q[138], PI / 6)
CZ(q[141], q[10])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
333 · Scenario Smart Grid 13
# Scenario 033: Smart-grid fault localization and energy routing: scenario 13
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[99])
X(q[8])
X(q[93])
H(q[87])
CNOT(q[87], q[30])
Rz(q[87], PI / 7)
CZ(q[30], q[29])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
334 · Scenario Smart Grid 14
# Scenario 034: Smart-grid fault localization and energy routing: scenario 14
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[68])
X(q[73])
X(q[4])
H(q[102])
CNOT(q[102], q[27])
Rz(q[102], PI / 8)
CZ(q[27], q[80])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
335 · Scenario Smart Grid 15
# Scenario 035: Smart-grid fault localization and energy routing: scenario 15
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[107])
X(q[34])
X(q[83])
H(q[47])
CNOT(q[47], q[2])
Rz(q[47], PI / 4)
CZ(q[2], q[13])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
336 · Scenario Smart Grid 16
# Scenario 036: Smart-grid fault localization and energy routing: scenario 16
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[18])
X(q[107])
X(q[80])
H(q[134])
CNOT(q[134], q[129])
Rz(q[134], PI / 5)
CZ(q[129], q[16])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
337 · Scenario Smart Grid 17
# Scenario 037: Smart-grid fault localization and energy routing: scenario 17
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[43])
X(q[58])
X(q[119])
H(q[95])
CNOT(q[95], q[146])
Rz(q[95], PI / 6)
CZ(q[146], q[13])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
338 · Scenario Smart Grid 18
# Scenario 038: Smart-grid fault localization and energy routing: scenario 18
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[32])
X(q[59])
X(q[130])
H(q[49])
CNOT(q[49], q[26])
Rz(q[49], PI / 7)
CZ(q[26], q[95])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
339 · Scenario Smart Grid 19
# Scenario 039: Smart-grid fault localization and energy routing: scenario 19
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[143])
X(q[8])
X(q[113])
H(q[47])
CNOT(q[47], q[22])
Rz(q[47], PI / 8)
CZ(q[22], q[137])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
340 · Scenario Smart Grid 20
# Scenario 040: Smart-grid fault localization and energy routing: scenario 20
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[112])
X(q[37])
X(q[78])
H(q[129])
CNOT(q[129], q[88])
Rz(q[129], PI / 4)
CZ(q[88], q[115])
print("scenario", "smart_grid", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
341 · Scenario Portfolio 01
# Scenario 041: Portfolio risk and scenario flagging: scenario 01
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[23])
X(q[58])
X(q[69])
H(q[25])
CNOT(q[25], q[14])
Rz(q[25], PI / 5)
CZ(q[14], q[71])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
342 · Scenario Portfolio 02
# Scenario 042: Portfolio risk and scenario flagging: scenario 02
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[84])
X(q[65])
X(q[66])
H(q[96])
CNOT(q[96], q[63])
Rz(q[96], PI / 6)
CZ(q[63], q[38])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
343 · Scenario Portfolio 03
# Scenario 043: Portfolio risk and scenario flagging: scenario 03
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[117])
X(q[126])
X(q[85])
H(q[1])
CNOT(q[1], q[22])
Rz(q[1], PI / 7)
CZ(q[22], q[11])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
344 · Scenario Portfolio 04
# Scenario 044: Portfolio risk and scenario flagging: scenario 04
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[122])
X(q[19])
X(q[96])
H(q[102])
CNOT(q[102], q[97])
Rz(q[102], PI / 8)
CZ(q[97], q[40])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
345 · Scenario Portfolio 05
# Scenario 045: Portfolio risk and scenario flagging: scenario 05
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[127])
X(q[40])
X(q[117])
H(q[91])
CNOT(q[91], q[46])
Rz(q[91], PI / 4)
CZ(q[46], q[69])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
346 · Scenario Portfolio 06
# Scenario 046: Portfolio risk and scenario flagging: scenario 06
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[8])
X(q[73])
X(q[54])
H(q[100])
CNOT(q[100], q[69])
Rz(q[100], PI / 5)
CZ(q[69], q[16])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
347 · Scenario Portfolio 07
# Scenario 047: Portfolio risk and scenario flagging: scenario 07
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[125])
X(q[94])
X(q[35])
H(q[53])
CNOT(q[53], q[68])
Rz(q[53], PI / 6)
CZ(q[68], q[19])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
348 · Scenario Portfolio 08
# Scenario 048: Portfolio risk and scenario flagging: scenario 08
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[88])
X(q[87])
X(q[96])
H(q[28])
CNOT(q[28], q[123])
Rz(q[28], PI / 7)
CZ(q[123], q[27])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
349 · Scenario Portfolio 09
# Scenario 049: Portfolio risk and scenario flagging: scenario 09
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[27])
X(q[92])
X(q[17])
H(q[103])
CNOT(q[103], q[122])
Rz(q[103], PI / 8)
CZ(q[122], q[121])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
350 · Scenario Portfolio 10
# Scenario 050: Portfolio risk and scenario flagging: scenario 10
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[64])
X(q[57])
X(q[86])
H(q[100])
CNOT(q[100], q[7])
Rz(q[100], PI / 4)
CZ(q[7], q[110])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
351 · Scenario Portfolio 11
# Scenario 051: Portfolio risk and scenario flagging: scenario 11
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[123])
X(q[88])
X(q[39])
H(q[45])
CNOT(q[45], q[124])
Rz(q[45], PI / 5)
CZ(q[124], q[91])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
352 · Scenario Portfolio 12
# Scenario 052: Portfolio risk and scenario flagging: scenario 12
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[34])
X(q[123])
X(q[4])
H(q[10])
CNOT(q[10], q[73])
Rz(q[10], PI / 6)
CZ(q[73], q[0])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
353 · Scenario Portfolio 13
# Scenario 053: Portfolio risk and scenario flagging: scenario 13
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[59])
X(q[48])
X(q[91])
H(q[55])
CNOT(q[55], q[90])
Rz(q[55], PI / 7)
CZ(q[90], q[47])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
354 · Scenario Portfolio 14
# Scenario 054: Portfolio risk and scenario flagging: scenario 14
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[68])
X(q[29])
X(q[74])
H(q[104])
CNOT(q[104], q[11])
Rz(q[104], PI / 8)
CZ(q[11], q[66])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
355 · Scenario Portfolio 15
# Scenario 055: Portfolio risk and scenario flagging: scenario 15
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[1])
X(q[74])
X(q[55])
H(q[109])
CNOT(q[109], q[96])
Rz(q[109], PI / 4)
CZ(q[96], q[23])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
356 · Scenario Portfolio 16
# Scenario 056: Portfolio risk and scenario flagging: scenario 16
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[108])
X(q[103])
X(q[24])
H(q[120])
CNOT(q[120], q[49])
Rz(q[120], PI / 5)
CZ(q[49], q[36])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
357 · Scenario Portfolio 17
# Scenario 057: Portfolio risk and scenario flagging: scenario 17
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[75])
X(q[20])
X(q[105])
H(q[99])
CNOT(q[99], q[78])
Rz(q[99], PI / 6)
CZ(q[78], q[113])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
358 · Scenario Portfolio 18
# Scenario 058: Portfolio risk and scenario flagging: scenario 18
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[30])
X(q[9])
X(q[94])
H(q[82])
CNOT(q[82], q[57])
Rz(q[82], PI / 7)
CZ(q[57], q[132])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
359 · Scenario Portfolio 19
# Scenario 059: Portfolio risk and scenario flagging: scenario 19
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[109])
X(q[102])
X(q[131])
H(q[105])
CNOT(q[105], q[36])
Rz(q[105], PI / 8)
CZ(q[36], q[11])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
360 · Scenario Portfolio 20
# Scenario 060: Portfolio risk and scenario flagging: scenario 20
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[66])
X(q[91])
X(q[24])
H(q[118])
CNOT(q[118], q[57])
Rz(q[118], PI / 4)
CZ(q[57], q[64])
print("scenario", "portfolio", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
361 · Scenario Cybersecurity 01
# Scenario 061: Network intrusion and cryptographic health monitoring: scenario 01
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1002, engine="stabilizer") {
q = quantum_register(1002)
for i in range(0, 220, 21) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1002, []))
print("sample", measure_all(shots=2))
}
362 · Scenario Cybersecurity 02
# Scenario 062: Network intrusion and cryptographic health monitoring: scenario 02
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1004, engine="stabilizer") {
q = quantum_register(1004)
for i in range(0, 220, 22) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1004, []))
print("sample", measure_all(shots=2))
}
363 · Scenario Cybersecurity 03
# Scenario 063: Network intrusion and cryptographic health monitoring: scenario 03
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1006, engine="stabilizer") {
q = quantum_register(1006)
for i in range(0, 220, 23) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1006, []))
print("sample", measure_all(shots=2))
}
364 · Scenario Cybersecurity 04
# Scenario 064: Network intrusion and cryptographic health monitoring: scenario 04
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1008, engine="stabilizer") {
q = quantum_register(1008)
for i in range(0, 220, 24) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1008, []))
print("sample", measure_all(shots=2))
}
365 · Scenario Cybersecurity 05
# Scenario 065: Network intrusion and cryptographic health monitoring: scenario 05
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1000, engine="stabilizer") {
q = quantum_register(1000)
for i in range(0, 220, 25) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1000, []))
print("sample", measure_all(shots=2))
}
366 · Scenario Cybersecurity 06
# Scenario 066: Network intrusion and cryptographic health monitoring: scenario 06
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1002, engine="stabilizer") {
q = quantum_register(1002)
for i in range(0, 220, 26) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1002, []))
print("sample", measure_all(shots=2))
}
367 · Scenario Cybersecurity 07
# Scenario 067: Network intrusion and cryptographic health monitoring: scenario 07
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1004, engine="stabilizer") {
q = quantum_register(1004)
for i in range(0, 220, 20) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1004, []))
print("sample", measure_all(shots=2))
}
368 · Scenario Cybersecurity 08
# Scenario 068: Network intrusion and cryptographic health monitoring: scenario 08
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1006, engine="stabilizer") {
q = quantum_register(1006)
for i in range(0, 220, 21) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1006, []))
print("sample", measure_all(shots=2))
}
369 · Scenario Cybersecurity 09
# Scenario 069: Network intrusion and cryptographic health monitoring: scenario 09
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1008, engine="stabilizer") {
q = quantum_register(1008)
for i in range(0, 220, 22) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1008, []))
print("sample", measure_all(shots=2))
}
370 · Scenario Cybersecurity 10
# Scenario 070: Network intrusion and cryptographic health monitoring: scenario 10
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1000, engine="stabilizer") {
q = quantum_register(1000)
for i in range(0, 220, 23) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1000, []))
print("sample", measure_all(shots=2))
}
371 · Scenario Cybersecurity 11
# Scenario 071: Network intrusion and cryptographic health monitoring: scenario 11
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1002, engine="stabilizer") {
q = quantum_register(1002)
for i in range(0, 220, 24) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1002, []))
print("sample", measure_all(shots=2))
}
372 · Scenario Cybersecurity 12
# Scenario 072: Network intrusion and cryptographic health monitoring: scenario 12
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1004, engine="stabilizer") {
q = quantum_register(1004)
for i in range(0, 220, 25) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1004, []))
print("sample", measure_all(shots=2))
}
373 · Scenario Cybersecurity 13
# Scenario 073: Network intrusion and cryptographic health monitoring: scenario 13
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1006, engine="stabilizer") {
q = quantum_register(1006)
for i in range(0, 220, 26) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1006, []))
print("sample", measure_all(shots=2))
}
374 · Scenario Cybersecurity 14
# Scenario 074: Network intrusion and cryptographic health monitoring: scenario 14
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1008, engine="stabilizer") {
q = quantum_register(1008)
for i in range(0, 220, 20) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1008, []))
print("sample", measure_all(shots=2))
}
375 · Scenario Cybersecurity 15
# Scenario 075: Network intrusion and cryptographic health monitoring: scenario 15
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1000, engine="stabilizer") {
q = quantum_register(1000)
for i in range(0, 220, 21) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1000, []))
print("sample", measure_all(shots=2))
}
376 · Scenario Cybersecurity 16
# Scenario 076: Network intrusion and cryptographic health monitoring: scenario 16
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1002, engine="stabilizer") {
q = quantum_register(1002)
for i in range(0, 220, 22) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1002, []))
print("sample", measure_all(shots=2))
}
377 · Scenario Cybersecurity 17
# Scenario 077: Network intrusion and cryptographic health monitoring: scenario 17
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1004, engine="stabilizer") {
q = quantum_register(1004)
for i in range(0, 220, 23) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1004, []))
print("sample", measure_all(shots=2))
}
378 · Scenario Cybersecurity 18
# Scenario 078: Network intrusion and cryptographic health monitoring: scenario 18
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1006, engine="stabilizer") {
q = quantum_register(1006)
for i in range(0, 220, 24) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1006, []))
print("sample", measure_all(shots=2))
}
379 · Scenario Cybersecurity 19
# Scenario 079: Network intrusion and cryptographic health monitoring: scenario 19
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1008, engine="stabilizer") {
q = quantum_register(1008)
for i in range(0, 220, 25) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1008, []))
print("sample", measure_all(shots=2))
}
380 · Scenario Cybersecurity 20
# Scenario 080: Network intrusion and cryptographic health monitoring: scenario 20
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(1000, engine="stabilizer") {
q = quantum_register(1000)
for i in range(0, 220, 26) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "cybersecurity", "backend", plan_backend(1000, []))
print("sample", measure_all(shots=2))
}
381 · Scenario Supply Chain 01
# Scenario 081: Supply-chain route disruption and inventory risk: scenario 01
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(162, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(162)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
382 · Scenario Supply Chain 02
# Scenario 082: Supply-chain route disruption and inventory risk: scenario 02
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(164, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(164)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
383 · Scenario Supply Chain 03
# Scenario 083: Supply-chain route disruption and inventory risk: scenario 03
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(166, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(166)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
384 · Scenario Supply Chain 04
# Scenario 084: Supply-chain route disruption and inventory risk: scenario 04
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(168, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(168)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
385 · Scenario Supply Chain 05
# Scenario 085: Supply-chain route disruption and inventory risk: scenario 05
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(160, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(160)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
386 · Scenario Supply Chain 06
# Scenario 086: Supply-chain route disruption and inventory risk: scenario 06
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(162, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(162)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
387 · Scenario Supply Chain 07
# Scenario 087: Supply-chain route disruption and inventory risk: scenario 07
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(164, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(164)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
388 · Scenario Supply Chain 08
# Scenario 088: Supply-chain route disruption and inventory risk: scenario 08
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(166, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(166)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
389 · Scenario Supply Chain 09
# Scenario 089: Supply-chain route disruption and inventory risk: scenario 09
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(168, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(168)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 6)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
390 · Scenario Supply Chain 10
# Scenario 090: Supply-chain route disruption and inventory risk: scenario 10
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(160, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(160)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 7)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
391 · Scenario Supply Chain 11
# Scenario 091: Supply-chain route disruption and inventory risk: scenario 11
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(162, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(162)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 8)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
392 · Scenario Supply Chain 12
# Scenario 092: Supply-chain route disruption and inventory risk: scenario 12
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(164, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(164)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 3)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
393 · Scenario Supply Chain 13
# Scenario 093: Supply-chain route disruption and inventory risk: scenario 13
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(166, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(166)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
394 · Scenario Supply Chain 14
# Scenario 094: Supply-chain route disruption and inventory risk: scenario 14
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(168, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(168)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
395 · Scenario Supply Chain 15
# Scenario 095: Supply-chain route disruption and inventory risk: scenario 15
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(160, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(160)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
396 · Scenario Supply Chain 16
# Scenario 096: Supply-chain route disruption and inventory risk: scenario 16
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(162, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(162)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
397 · Scenario Supply Chain 17
# Scenario 097: Supply-chain route disruption and inventory risk: scenario 17
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(164, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(164)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
398 · Scenario Supply Chain 18
# Scenario 098: Supply-chain route disruption and inventory risk: scenario 18
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(166, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(166)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
399 · Scenario Supply Chain 19
# Scenario 099: Supply-chain route disruption and inventory risk: scenario 19
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(168, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(168)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
400 · Scenario Supply Chain 20
# Scenario 100: Supply-chain route disruption and inventory risk: scenario 20
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(160, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(160)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "supply_chain", hierarchical_report())
print("lookup", lookup_profile())
}
Programs 401–500
401 · Scenario Traffic 01
# Scenario 101: Urban traffic signal optimization: scenario 01
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(134, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(134)
H(q[0])
for i in range(0, 61) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(134))
}
402 · Scenario Traffic 02
# Scenario 102: Urban traffic signal optimization: scenario 02
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(136, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(136)
H(q[0])
for i in range(0, 62) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(136))
}
403 · Scenario Traffic 03
# Scenario 103: Urban traffic signal optimization: scenario 03
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(138, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(138)
H(q[0])
for i in range(0, 63) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(138))
}
404 · Scenario Traffic 04
# Scenario 104: Urban traffic signal optimization: scenario 04
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(140, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(140)
H(q[0])
for i in range(0, 64) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(140))
}
405 · Scenario Traffic 05
# Scenario 105: Urban traffic signal optimization: scenario 05
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 65) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
406 · Scenario Traffic 06
# Scenario 106: Urban traffic signal optimization: scenario 06
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(134, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(134)
H(q[0])
for i in range(0, 66) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(134))
}
407 · Scenario Traffic 07
# Scenario 107: Urban traffic signal optimization: scenario 07
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(136, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(136)
H(q[0])
for i in range(0, 67) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(136))
}
408 · Scenario Traffic 08
# Scenario 108: Urban traffic signal optimization: scenario 08
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(138, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(138)
H(q[0])
for i in range(0, 68) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(138))
}
409 · Scenario Traffic 09
# Scenario 109: Urban traffic signal optimization: scenario 09
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(140, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(140)
H(q[0])
for i in range(0, 69) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(140))
}
410 · Scenario Traffic 10
# Scenario 110: Urban traffic signal optimization: scenario 10
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 70) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
411 · Scenario Traffic 11
# Scenario 111: Urban traffic signal optimization: scenario 11
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(134, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(134)
H(q[0])
for i in range(0, 71) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(134))
}
412 · Scenario Traffic 12
# Scenario 112: Urban traffic signal optimization: scenario 12
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(136, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(136)
H(q[0])
for i in range(0, 72) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(136))
}
413 · Scenario Traffic 13
# Scenario 113: Urban traffic signal optimization: scenario 13
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(138, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(138)
H(q[0])
for i in range(0, 73) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(138))
}
414 · Scenario Traffic 14
# Scenario 114: Urban traffic signal optimization: scenario 14
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(140, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(140)
H(q[0])
for i in range(0, 74) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(140))
}
415 · Scenario Traffic 15
# Scenario 115: Urban traffic signal optimization: scenario 15
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 75) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
416 · Scenario Traffic 16
# Scenario 116: Urban traffic signal optimization: scenario 16
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(134, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(134)
H(q[0])
for i in range(0, 76) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(134))
}
417 · Scenario Traffic 17
# Scenario 117: Urban traffic signal optimization: scenario 17
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(136, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(136)
H(q[0])
for i in range(0, 77) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(136))
}
418 · Scenario Traffic 18
# Scenario 118: Urban traffic signal optimization: scenario 18
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(138, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(138)
H(q[0])
for i in range(0, 78) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(138))
}
419 · Scenario Traffic 19
# Scenario 119: Urban traffic signal optimization: scenario 19
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(140, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(140)
H(q[0])
for i in range(0, 79) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(140))
}
420 · Scenario Traffic 20
# Scenario 120: Urban traffic signal optimization: scenario 20
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 80) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "traffic", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
421 · Scenario Satellite 01
# Scenario 121: Satellite telemetry anomaly isolation: scenario 01
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[83])
X(q[84])
X(q[25])
H(q[15])
CNOT(q[15], q[122])
Rz(q[15], PI / 5)
CZ(q[122], q[105])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
422 · Scenario Satellite 02
# Scenario 122: Satellite telemetry anomaly isolation: scenario 02
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[14])
X(q[133])
X(q[10])
H(q[134])
CNOT(q[134], q[77])
Rz(q[134], PI / 6)
CZ(q[77], q[64])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
423 · Scenario Satellite 03
# Scenario 123: Satellite telemetry anomaly isolation: scenario 03
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[141])
X(q[122])
X(q[135])
H(q[33])
CNOT(q[33], q[84])
Rz(q[33], PI / 7)
CZ(q[84], q[131])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
424 · Scenario Satellite 04
# Scenario 124: Satellite telemetry anomaly isolation: scenario 04
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[154])
X(q[9])
X(q[70])
H(q[60])
CNOT(q[60], q[95])
Rz(q[60], PI / 8)
CZ(q[95], q[0])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
425 · Scenario Satellite 05
# Scenario 125: Satellite telemetry anomaly isolation: scenario 05
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[47])
X(q[94])
X(q[23])
H(q[17])
CNOT(q[17], q[32])
Rz(q[17], PI / 4)
CZ(q[32], q[133])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
426 · Scenario Satellite 06
# Scenario 126: Satellite telemetry anomaly isolation: scenario 06
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[60])
X(q[29])
X(q[138])
H(q[8])
CNOT(q[8], q[59])
Rz(q[8], PI / 5)
CZ(q[59], q[146])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
427 · Scenario Satellite 07
# Scenario 127: Satellite telemetry anomaly isolation: scenario 07
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[121])
X(q[74])
X(q[67])
H(q[91])
CNOT(q[91], q[82])
Rz(q[91], PI / 6)
CZ(q[82], q[84])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
428 · Scenario Satellite 08
# Scenario 128: Satellite telemetry anomaly isolation: scenario 08
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[74])
X(q[7])
X(q[68])
H(q[134])
CNOT(q[134], q[113])
Rz(q[134], PI / 7)
CZ(q[113], q[76])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
429 · Scenario Satellite 09
# Scenario 129: Satellite telemetry anomaly isolation: scenario 09
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[71])
X(q[102])
X(q[21])
H(q[5])
CNOT(q[5], q[90])
Rz(q[5], PI / 8)
CZ(q[90], q[57])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
430 · Scenario Satellite 10
# Scenario 130: Satellite telemetry anomaly isolation: scenario 10
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[52])
X(q[39])
X(q[28])
H(q[82])
CNOT(q[82], q[67])
Rz(q[82], PI / 4)
CZ(q[67], q[48])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
431 · Scenario Satellite 11
# Scenario 131: Satellite telemetry anomaly isolation: scenario 11
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[37])
X(q[126])
X(q[99])
H(q[1])
CNOT(q[1], q[148])
Rz(q[1], PI / 5)
CZ(q[148], q[35])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
432 · Scenario Satellite 12
# Scenario 132: Satellite telemetry anomaly isolation: scenario 12
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[74])
X(q[15])
X(q[124])
H(q[48])
CNOT(q[48], q[87])
Rz(q[48], PI / 6)
CZ(q[87], q[70])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
433 · Scenario Satellite 13
# Scenario 133: Satellite telemetry anomaly isolation: scenario 13
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[7])
X(q[48])
X(q[1])
H(q[79])
CNOT(q[79], q[142])
Rz(q[79], PI / 7)
CZ(q[142], q[21])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
434 · Scenario Satellite 14
# Scenario 134: Satellite telemetry anomaly isolation: scenario 14
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[146])
X(q[37])
X(q[130])
H(q[108])
CNOT(q[108], q[85])
Rz(q[108], PI / 8)
CZ(q[85], q[114])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
435 · Scenario Satellite 15
# Scenario 135: Satellite telemetry anomaly isolation: scenario 15
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[57])
X(q[134])
X(q[33])
H(q[147])
CNOT(q[147], q[102])
Rz(q[147], PI / 4)
CZ(q[102], q[113])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
436 · Scenario Satellite 16
# Scenario 136: Satellite telemetry anomaly isolation: scenario 16
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[14])
X(q[71])
X(q[60])
H(q[146])
CNOT(q[146], q[85])
Rz(q[146], PI / 5)
CZ(q[85], q[76])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
437 · Scenario Satellite 17
# Scenario 137: Satellite telemetry anomaly isolation: scenario 17
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[27])
X(q[110])
X(q[73])
H(q[5])
CNOT(q[5], q[92])
Rz(q[5], PI / 6)
CZ(q[92], q[60])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
438 · Scenario Satellite 18
# Scenario 138: Satellite telemetry anomaly isolation: scenario 18
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[96])
X(q[89])
X(q[90])
H(q[24])
CNOT(q[24], q[15])
Rz(q[24], PI / 7)
CZ(q[15], q[122])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
439 · Scenario Satellite 19
# Scenario 139: Satellite telemetry anomaly isolation: scenario 19
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[63])
X(q[130])
X(q[81])
H(q[53])
CNOT(q[53], q[80])
Rz(q[53], PI / 8)
CZ(q[80], q[13])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
440 · Scenario Satellite 20
# Scenario 140: Satellite telemetry anomaly isolation: scenario 20
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[62])
X(q[137])
X(q[28])
H(q[79])
CNOT(q[79], q[38])
Rz(q[79], PI / 4)
CZ(q[38], q[65])
print("scenario", "satellite", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
441 · Scenario Telecom 01
# Scenario 141: Telecom routing and spectrum allocation: scenario 01
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(132, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(132)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
442 · Scenario Telecom 02
# Scenario 142: Telecom routing and spectrum allocation: scenario 02
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(134, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(134)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
443 · Scenario Telecom 03
# Scenario 143: Telecom routing and spectrum allocation: scenario 03
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(136, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(136)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
444 · Scenario Telecom 04
# Scenario 144: Telecom routing and spectrum allocation: scenario 04
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(138, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(138)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
445 · Scenario Telecom 05
# Scenario 145: Telecom routing and spectrum allocation: scenario 05
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(130, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(130)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
446 · Scenario Telecom 06
# Scenario 146: Telecom routing and spectrum allocation: scenario 06
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(132, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(132)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
447 · Scenario Telecom 07
# Scenario 147: Telecom routing and spectrum allocation: scenario 07
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(134, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(134)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
448 · Scenario Telecom 08
# Scenario 148: Telecom routing and spectrum allocation: scenario 08
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(136, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(136)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
449 · Scenario Telecom 09
# Scenario 149: Telecom routing and spectrum allocation: scenario 09
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(138, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(138)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 6)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
450 · Scenario Telecom 10
# Scenario 150: Telecom routing and spectrum allocation: scenario 10
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(130, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(130)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 7)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
451 · Scenario Telecom 11
# Scenario 151: Telecom routing and spectrum allocation: scenario 11
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(132, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(132)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 8)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
452 · Scenario Telecom 12
# Scenario 152: Telecom routing and spectrum allocation: scenario 12
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(134, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(134)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 3)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
453 · Scenario Telecom 13
# Scenario 153: Telecom routing and spectrum allocation: scenario 13
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(136, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(136)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
454 · Scenario Telecom 14
# Scenario 154: Telecom routing and spectrum allocation: scenario 14
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(138, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(138)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
455 · Scenario Telecom 15
# Scenario 155: Telecom routing and spectrum allocation: scenario 15
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(130, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(130)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
456 · Scenario Telecom 16
# Scenario 156: Telecom routing and spectrum allocation: scenario 16
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(132, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(132)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
457 · Scenario Telecom 17
# Scenario 157: Telecom routing and spectrum allocation: scenario 17
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(134, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(134)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
458 · Scenario Telecom 18
# Scenario 158: Telecom routing and spectrum allocation: scenario 18
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(136, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(136)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
459 · Scenario Telecom 19
# Scenario 159: Telecom routing and spectrum allocation: scenario 19
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(138, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(138)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
460 · Scenario Telecom 20
# Scenario 160: Telecom routing and spectrum allocation: scenario 20
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(130, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(130)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "telecom", hierarchical_report())
print("lookup", lookup_profile())
}
461 · Scenario Drug Discovery 01
# Scenario 161: Drug-discovery feature-map screening: scenario 01
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(126, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(126)
H(q[0])
for i in range(0, 61) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(126))
}
462 · Scenario Drug Discovery 02
# Scenario 162: Drug-discovery feature-map screening: scenario 02
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(128, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(128)
H(q[0])
for i in range(0, 62) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(128))
}
463 · Scenario Drug Discovery 03
# Scenario 163: Drug-discovery feature-map screening: scenario 03
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(130, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(130)
H(q[0])
for i in range(0, 63) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(130))
}
464 · Scenario Drug Discovery 04
# Scenario 164: Drug-discovery feature-map screening: scenario 04
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 64) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
465 · Scenario Drug Discovery 05
# Scenario 165: Drug-discovery feature-map screening: scenario 05
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(124, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(124)
H(q[0])
for i in range(0, 65) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(124))
}
466 · Scenario Drug Discovery 06
# Scenario 166: Drug-discovery feature-map screening: scenario 06
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(126, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(126)
H(q[0])
for i in range(0, 66) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(126))
}
467 · Scenario Drug Discovery 07
# Scenario 167: Drug-discovery feature-map screening: scenario 07
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(128, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(128)
H(q[0])
for i in range(0, 67) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(128))
}
468 · Scenario Drug Discovery 08
# Scenario 168: Drug-discovery feature-map screening: scenario 08
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(130, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(130)
H(q[0])
for i in range(0, 68) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(130))
}
469 · Scenario Drug Discovery 09
# Scenario 169: Drug-discovery feature-map screening: scenario 09
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 69) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
470 · Scenario Drug Discovery 10
# Scenario 170: Drug-discovery feature-map screening: scenario 10
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(124, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(124)
H(q[0])
for i in range(0, 70) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(124))
}
471 · Scenario Drug Discovery 11
# Scenario 171: Drug-discovery feature-map screening: scenario 11
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(126, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(126)
H(q[0])
for i in range(0, 71) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(126))
}
472 · Scenario Drug Discovery 12
# Scenario 172: Drug-discovery feature-map screening: scenario 12
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(128, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(128)
H(q[0])
for i in range(0, 72) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(128))
}
473 · Scenario Drug Discovery 13
# Scenario 173: Drug-discovery feature-map screening: scenario 13
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(130, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(130)
H(q[0])
for i in range(0, 73) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(130))
}
474 · Scenario Drug Discovery 14
# Scenario 174: Drug-discovery feature-map screening: scenario 14
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 74) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
475 · Scenario Drug Discovery 15
# Scenario 175: Drug-discovery feature-map screening: scenario 15
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(124, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(124)
H(q[0])
for i in range(0, 75) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(124))
}
476 · Scenario Drug Discovery 16
# Scenario 176: Drug-discovery feature-map screening: scenario 16
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(126, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(126)
H(q[0])
for i in range(0, 76) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(126))
}
477 · Scenario Drug Discovery 17
# Scenario 177: Drug-discovery feature-map screening: scenario 17
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(128, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(128)
H(q[0])
for i in range(0, 77) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(128))
}
478 · Scenario Drug Discovery 18
# Scenario 178: Drug-discovery feature-map screening: scenario 18
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(130, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(130)
H(q[0])
for i in range(0, 78) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(130))
}
479 · Scenario Drug Discovery 19
# Scenario 179: Drug-discovery feature-map screening: scenario 19
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 79) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
480 · Scenario Drug Discovery 20
# Scenario 180: Drug-discovery feature-map screening: scenario 20
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(124, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(124)
H(q[0])
for i in range(0, 80) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "drug_discovery", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(124))
}
481 · Scenario Materials 01
# Scenario 181: Battery and materials candidate screening: scenario 01
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(128, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(128)
H(q[0])
for i in range(0, 61) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(128))
}
482 · Scenario Materials 02
# Scenario 182: Battery and materials candidate screening: scenario 02
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(130, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(130)
H(q[0])
for i in range(0, 62) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(130))
}
483 · Scenario Materials 03
# Scenario 183: Battery and materials candidate screening: scenario 03
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 63) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
484 · Scenario Materials 04
# Scenario 184: Battery and materials candidate screening: scenario 04
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(134, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(134)
H(q[0])
for i in range(0, 64) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(134))
}
485 · Scenario Materials 05
# Scenario 185: Battery and materials candidate screening: scenario 05
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(126, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(126)
H(q[0])
for i in range(0, 65) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(126))
}
486 · Scenario Materials 06
# Scenario 186: Battery and materials candidate screening: scenario 06
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(128, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(128)
H(q[0])
for i in range(0, 66) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(128))
}
487 · Scenario Materials 07
# Scenario 187: Battery and materials candidate screening: scenario 07
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(130, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(130)
H(q[0])
for i in range(0, 67) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(130))
}
488 · Scenario Materials 08
# Scenario 188: Battery and materials candidate screening: scenario 08
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 68) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
489 · Scenario Materials 09
# Scenario 189: Battery and materials candidate screening: scenario 09
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(134, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(134)
H(q[0])
for i in range(0, 69) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(134))
}
490 · Scenario Materials 10
# Scenario 190: Battery and materials candidate screening: scenario 10
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(126, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(126)
H(q[0])
for i in range(0, 70) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(126))
}
491 · Scenario Materials 11
# Scenario 191: Battery and materials candidate screening: scenario 11
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(128, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(128)
H(q[0])
for i in range(0, 71) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(128))
}
492 · Scenario Materials 12
# Scenario 192: Battery and materials candidate screening: scenario 12
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(130, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(130)
H(q[0])
for i in range(0, 72) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(130))
}
493 · Scenario Materials 13
# Scenario 193: Battery and materials candidate screening: scenario 13
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 73) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
494 · Scenario Materials 14
# Scenario 194: Battery and materials candidate screening: scenario 14
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(134, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(134)
H(q[0])
for i in range(0, 74) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(134))
}
495 · Scenario Materials 15
# Scenario 195: Battery and materials candidate screening: scenario 15
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(126, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(126)
H(q[0])
for i in range(0, 75) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(126))
}
496 · Scenario Materials 16
# Scenario 196: Battery and materials candidate screening: scenario 16
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(128, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(128)
H(q[0])
for i in range(0, 76) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(128))
}
497 · Scenario Materials 17
# Scenario 197: Battery and materials candidate screening: scenario 17
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(130, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(130)
H(q[0])
for i in range(0, 77) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(130))
}
498 · Scenario Materials 18
# Scenario 198: Battery and materials candidate screening: scenario 18
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(132, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(132)
H(q[0])
for i in range(0, 78) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(132))
}
499 · Scenario Materials 19
# Scenario 199: Battery and materials candidate screening: scenario 19
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(134, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(134)
H(q[0])
for i in range(0, 79) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(134))
}
500 · Scenario Materials 20
# Scenario 200: Battery and materials candidate screening: scenario 20
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(126, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(126)
H(q[0])
for i in range(0, 80) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "materials", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(126))
}
Programs 501–600
501 · Scenario Genomics 01
# Scenario 201: Genomic variant prioritization: scenario 01
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[19])
X(q[116])
X(q[9])
H(q[55])
CNOT(q[55], q[26])
Rz(q[55], PI / 5)
CZ(q[26], q[1])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
502 · Scenario Genomics 02
# Scenario 202: Genomic variant prioritization: scenario 02
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[32])
X(q[113])
X(q[152])
H(q[62])
CNOT(q[62], q[3])
Rz(q[62], PI / 6)
CZ(q[3], q[112])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
503 · Scenario Genomics 03
# Scenario 203: Genomic variant prioritization: scenario 03
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[5])
X(q[154])
X(q[155])
H(q[89])
CNOT(q[89], q[80])
Rz(q[89], PI / 7)
CZ(q[80], q[31])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
504 · Scenario Genomics 04
# Scenario 204: Genomic variant prioritization: scenario 04
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[90])
X(q[75])
X(q[76])
H(q[128])
CNOT(q[128], q[15])
Rz(q[128], PI / 8)
CZ(q[15], q[122])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
505 · Scenario Genomics 05
# Scenario 205: Genomic variant prioritization: scenario 05
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[127])
X(q[114])
X(q[103])
H(q[7])
CNOT(q[7], q[142])
Rz(q[7], PI / 4)
CZ(q[142], q[123])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
506 · Scenario Genomics 06
# Scenario 206: Genomic variant prioritization: scenario 06
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[148])
X(q[61])
X(q[122])
H(q[48])
CNOT(q[48], q[115])
Rz(q[48], PI / 5)
CZ(q[115], q[42])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
507 · Scenario Genomics 07
# Scenario 207: Genomic variant prioritization: scenario 07
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[139])
X(q[54])
X(q[55])
H(q[19])
CNOT(q[19], q[8])
Rz(q[19], PI / 6)
CZ(q[8], q[115])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
508 · Scenario Genomics 08
# Scenario 208: Genomic variant prioritization: scenario 08
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[94])
X(q[39])
X(q[88])
H(q[34])
CNOT(q[34], q[109])
Rz(q[34], PI / 7)
CZ(q[109], q[132])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
509 · Scenario Genomics 09
# Scenario 209: Genomic variant prioritization: scenario 09
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[7])
X(q[10])
X(q[21])
H(q[73])
CNOT(q[73], q[27])
Rz(q[73], PI / 8)
CZ(q[27], q[74])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
510 · Scenario Genomics 10
# Scenario 210: Genomic variant prioritization: scenario 10
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[132])
X(q[59])
X(q[108])
H(q[72])
CNOT(q[72], q[27])
Rz(q[72], PI / 4)
CZ(q[27], q[38])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
511 · Scenario Genomics 11
# Scenario 211: Genomic variant prioritization: scenario 11
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[125])
X(q[6])
X(q[83])
H(q[41])
CNOT(q[41], q[52])
Rz(q[41], PI / 5)
CZ(q[52], q[100])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
512 · Scenario Genomics 12
# Scenario 212: Genomic variant prioritization: scenario 12
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[92])
X(q[149])
X(q[112])
H(q[130])
CNOT(q[130], q[13])
Rz(q[130], PI / 6)
CZ(q[13], q[118])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
513 · Scenario Genomics 13
# Scenario 213: Genomic variant prioritization: scenario 13
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[27])
X(q[80])
X(q[21])
H(q[135])
CNOT(q[135], q[138])
Rz(q[135], PI / 7)
CZ(q[138], q[77])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
514 · Scenario Genomics 14
# Scenario 214: Genomic variant prioritization: scenario 14
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[82])
X(q[103])
X(q[136])
H(q[18])
CNOT(q[18], q[5])
Rz(q[18], PI / 8)
CZ(q[5], q[78])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
515 · Scenario Genomics 15
# Scenario 215: Genomic variant prioritization: scenario 15
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[137])
X(q[62])
X(q[103])
H(q[4])
CNOT(q[4], q[113])
Rz(q[4], PI / 4)
CZ(q[113], q[140])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
516 · Scenario Genomics 16
# Scenario 216: Genomic variant prioritization: scenario 16
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[102])
X(q[103])
X(q[44])
H(q[34])
CNOT(q[34], q[141])
Rz(q[34], PI / 5)
CZ(q[141], q[124])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
517 · Scenario Genomics 17
# Scenario 217: Genomic variant prioritization: scenario 17
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[45])
X(q[90])
X(q[15])
H(q[87])
CNOT(q[87], q[18])
Rz(q[87], PI / 6)
CZ(q[18], q[121])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
518 · Scenario Genomics 18
# Scenario 218: Genomic variant prioritization: scenario 18
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[116])
X(q[121])
X(q[110])
H(q[80])
CNOT(q[80], q[11])
Rz(q[80], PI / 7)
CZ(q[11], q[22])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
519 · Scenario Genomics 19
# Scenario 219: Genomic variant prioritization: scenario 19
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[157])
X(q[38])
X(q[87])
H(q[121])
CNOT(q[121], q[0])
Rz(q[121], PI / 8)
CZ(q[0], q[135])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
520 · Scenario Genomics 20
# Scenario 220: Genomic variant prioritization: scenario 20
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[142])
X(q[99])
X(q[118])
H(q[52])
CNOT(q[52], q[97])
Rz(q[52], PI / 4)
CZ(q[97], q[18])
print("scenario", "genomics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
521 · Scenario Healthcare 01
# Scenario 221: Hospital triage and resource allocation: scenario 01
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[3])
X(q[78])
X(q[49])
H(q[125])
CNOT(q[125], q[44])
Rz(q[125], PI / 5)
CZ(q[44], q[41])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
522 · Scenario Healthcare 02
# Scenario 222: Hospital triage and resource allocation: scenario 02
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[108])
X(q[53])
X(q[6])
H(q[0])
CNOT(q[0], q[111])
Rz(q[0], PI / 6)
CZ(q[111], q[14])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
523 · Scenario Healthcare 03
# Scenario 223: Hospital triage and resource allocation: scenario 03
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[11])
X(q[62])
X(q[59])
H(q[35])
CNOT(q[35], q[40])
Rz(q[35], PI / 7)
CZ(q[40], q[123])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
524 · Scenario Healthcare 04
# Scenario 224: Hospital triage and resource allocation: scenario 04
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[102])
X(q[63])
X(q[108])
H(q[2])
CNOT(q[2], q[45])
Rz(q[2], PI / 8)
CZ(q[45], q[100])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
525 · Scenario Healthcare 05
# Scenario 225: Hospital triage and resource allocation: scenario 05
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[35])
X(q[12])
X(q[25])
H(q[31])
CNOT(q[31], q[50])
Rz(q[31], PI / 4)
CZ(q[50], q[9])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
526 · Scenario Healthcare 06
# Scenario 226: Hospital triage and resource allocation: scenario 06
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[118])
X(q[93])
X(q[34])
H(q[70])
CNOT(q[70], q[99])
Rz(q[70], PI / 5)
CZ(q[99], q[116])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
527 · Scenario Healthcare 07
# Scenario 227: Hospital triage and resource allocation: scenario 07
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[17])
X(q[82])
X(q[107])
H(q[89])
CNOT(q[89], q[116])
Rz(q[89], PI / 6)
CZ(q[116], q[127])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
528 · Scenario Healthcare 08
# Scenario 228: Hospital triage and resource allocation: scenario 08
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[116])
X(q[23])
X(q[74])
H(q[62])
CNOT(q[62], q[7])
Rz(q[62], PI / 7)
CZ(q[7], q[29])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
529 · Scenario Healthcare 09
# Scenario 229: Hospital triage and resource allocation: scenario 09
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[7])
X(q[0])
X(q[29])
H(q[3])
CNOT(q[3], q[70])
Rz(q[3], PI / 8)
CZ(q[70], q[45])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
530 · Scenario Healthcare 10
# Scenario 230: Hospital triage and resource allocation: scenario 10
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[100])
X(q[29])
X(q[122])
H(q[40])
CNOT(q[40], q[11])
Rz(q[40], PI / 4)
CZ(q[11], q[50])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
531 · Scenario Healthcare 11
# Scenario 231: Hospital triage and resource allocation: scenario 11
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[103])
X(q[108])
X(q[19])
H(q[15])
CNOT(q[15], q[24])
Rz(q[15], PI / 5)
CZ(q[24], q[61])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
532 · Scenario Healthcare 12
# Scenario 232: Hospital triage and resource allocation: scenario 12
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[58])
X(q[111])
X(q[76])
H(q[46])
CNOT(q[46], q[121])
Rz(q[46], PI / 6)
CZ(q[121], q[108])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
533 · Scenario Healthcare 13
# Scenario 233: Hospital triage and resource allocation: scenario 13
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[87])
X(q[118])
X(q[65])
H(q[89])
CNOT(q[89], q[108])
Rz(q[89], PI / 7)
CZ(q[108], q[25])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
534 · Scenario Healthcare 14
# Scenario 234: Hospital triage and resource allocation: scenario 14
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[48])
X(q[73])
X(q[86])
H(q[4])
CNOT(q[4], q[95])
Rz(q[4], PI / 8)
CZ(q[95], q[126])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
535 · Scenario Healthcare 15
# Scenario 235: Hospital triage and resource allocation: scenario 15
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[37])
X(q[46])
X(q[91])
H(q[49])
CNOT(q[49], q[100])
Rz(q[49], PI / 4)
CZ(q[100], q[108])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
536 · Scenario Healthcare 16
# Scenario 236: Hospital triage and resource allocation: scenario 16
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[88])
X(q[123])
X(q[4])
H(q[90])
CNOT(q[90], q[79])
Rz(q[90], PI / 5)
CZ(q[79], q[6])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
537 · Scenario Healthcare 17
# Scenario 237: Hospital triage and resource allocation: scenario 17
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[99])
X(q[8])
X(q[45])
H(q[3])
CNOT(q[3], q[126])
Rz(q[3], PI / 6)
CZ(q[126], q[89])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
538 · Scenario Healthcare 18
# Scenario 238: Hospital triage and resource allocation: scenario 18
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[58])
X(q[79])
X(q[68])
H(q[116])
CNOT(q[116], q[75])
Rz(q[116], PI / 7)
CZ(q[75], q[110])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
539 · Scenario Healthcare 19
# Scenario 239: Hospital triage and resource allocation: scenario 19
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[89])
X(q[10])
X(q[7])
H(q[5])
CNOT(q[5], q[120])
Rz(q[5], PI / 8)
CZ(q[120], q[71])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
540 · Scenario Healthcare 20
# Scenario 240: Hospital triage and resource allocation: scenario 20
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[102])
X(q[63])
X(q[60])
H(q[58])
CNOT(q[58], q[61])
Rz(q[58], PI / 4)
CZ(q[61], q[4])
print("scenario", "healthcare", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
541 · Scenario Aerospace 01
# Scenario 241: Aerospace sensor-fusion fault tree: scenario 01
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(142, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(142)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
542 · Scenario Aerospace 02
# Scenario 242: Aerospace sensor-fusion fault tree: scenario 02
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(144, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(144)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
543 · Scenario Aerospace 03
# Scenario 243: Aerospace sensor-fusion fault tree: scenario 03
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(146, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(146)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
544 · Scenario Aerospace 04
# Scenario 244: Aerospace sensor-fusion fault tree: scenario 04
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(148, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(148)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
545 · Scenario Aerospace 05
# Scenario 245: Aerospace sensor-fusion fault tree: scenario 05
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(140, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(140)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
546 · Scenario Aerospace 06
# Scenario 246: Aerospace sensor-fusion fault tree: scenario 06
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(142, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(142)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
547 · Scenario Aerospace 07
# Scenario 247: Aerospace sensor-fusion fault tree: scenario 07
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(144, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(144)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
548 · Scenario Aerospace 08
# Scenario 248: Aerospace sensor-fusion fault tree: scenario 08
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(146, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(146)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
549 · Scenario Aerospace 09
# Scenario 249: Aerospace sensor-fusion fault tree: scenario 09
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(148, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(148)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 6)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
550 · Scenario Aerospace 10
# Scenario 250: Aerospace sensor-fusion fault tree: scenario 10
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(140, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(140)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 7)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
551 · Scenario Aerospace 11
# Scenario 251: Aerospace sensor-fusion fault tree: scenario 11
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(142, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(142)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 8)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
552 · Scenario Aerospace 12
# Scenario 252: Aerospace sensor-fusion fault tree: scenario 12
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(144, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(144)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 3)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
553 · Scenario Aerospace 13
# Scenario 253: Aerospace sensor-fusion fault tree: scenario 13
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(146, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(146)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
554 · Scenario Aerospace 14
# Scenario 254: Aerospace sensor-fusion fault tree: scenario 14
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(148, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(148)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
555 · Scenario Aerospace 15
# Scenario 255: Aerospace sensor-fusion fault tree: scenario 15
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(140, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(140)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
556 · Scenario Aerospace 16
# Scenario 256: Aerospace sensor-fusion fault tree: scenario 16
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(142, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(142)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
557 · Scenario Aerospace 17
# Scenario 257: Aerospace sensor-fusion fault tree: scenario 17
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(144, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(144)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
558 · Scenario Aerospace 18
# Scenario 258: Aerospace sensor-fusion fault tree: scenario 18
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(146, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(146)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
559 · Scenario Aerospace 19
# Scenario 259: Aerospace sensor-fusion fault tree: scenario 19
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(148, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(148)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
560 · Scenario Aerospace 20
# Scenario 260: Aerospace sensor-fusion fault tree: scenario 20
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(140, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(140)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "aerospace", hierarchical_report())
print("lookup", lookup_profile())
}
561 · Scenario Robotics 01
# Scenario 261: Robotics path planning and collision flags: scenario 01
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[47])
X(q[64])
X(q[149])
H(q[123])
CNOT(q[123], q[30])
Rz(q[123], PI / 5)
CZ(q[30], q[37])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
562 · Scenario Robotics 02
# Scenario 262: Robotics path planning and collision flags: scenario 02
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[84])
X(q[21])
X(q[66])
H(q[8])
CNOT(q[8], q[63])
Rz(q[8], PI / 6)
CZ(q[63], q[148])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
563 · Scenario Robotics 03
# Scenario 263: Robotics path planning and collision flags: scenario 03
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[137])
X(q[22])
X(q[131])
H(q[53])
CNOT(q[53], q[116])
Rz(q[53], PI / 7)
CZ(q[116], q[151])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
564 · Scenario Robotics 04
# Scenario 264: Robotics path planning and collision flags: scenario 04
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[42])
X(q[85])
X(q[120])
H(q[100])
CNOT(q[100], q[113])
Rz(q[100], PI / 8)
CZ(q[113], q[16])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
565 · Scenario Robotics 05
# Scenario 265: Robotics path planning and collision flags: scenario 05
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[37])
X(q[112])
X(q[3])
H(q[54])
CNOT(q[54], q[13])
Rz(q[54], PI / 4)
CZ(q[13], q[40])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
566 · Scenario Robotics 06
# Scenario 266: Robotics path planning and collision flags: scenario 06
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[24])
X(q[9])
X(q[110])
H(q[116])
CNOT(q[116], q[119])
Rz(q[116], PI / 5)
CZ(q[119], q[78])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
567 · Scenario Robotics 07
# Scenario 267: Robotics path planning and collision flags: scenario 07
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[37])
X(q[116])
X(q[123])
H(q[119])
CNOT(q[119], q[68])
Rz(q[119], PI / 6)
CZ(q[68], q[151])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
568 · Scenario Robotics 08
# Scenario 268: Robotics path planning and collision flags: scenario 08
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[70])
X(q[63])
X(q[64])
H(q[154])
CNOT(q[154], q[145])
Rz(q[154], PI / 7)
CZ(q[145], q[96])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
569 · Scenario Robotics 09
# Scenario 269: Robotics path planning and collision flags: scenario 09
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[117])
X(q[20])
X(q[71])
H(q[45])
CNOT(q[45], q[108])
Rz(q[45], PI / 8)
CZ(q[108], q[73])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
570 · Scenario Robotics 10
# Scenario 270: Robotics path planning and collision flags: scenario 10
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[42])
X(q[149])
X(q[18])
H(q[102])
CNOT(q[102], q[147])
Rz(q[102], PI / 4)
CZ(q[147], q[68])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
571 · Scenario Robotics 11
# Scenario 271: Robotics path planning and collision flags: scenario 11
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[1])
X(q[106])
X(q[71])
H(q[109])
CNOT(q[109], q[56])
Rz(q[109], PI / 5)
CZ(q[56], q[119])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
572 · Scenario Robotics 12
# Scenario 272: Robotics path planning and collision flags: scenario 12
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[144])
X(q[57])
X(q[26])
H(q[76])
CNOT(q[76], q[73])
Rz(q[76], PI / 6)
CZ(q[73], q[0])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
573 · Scenario Robotics 13
# Scenario 273: Robotics path planning and collision flags: scenario 13
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[3])
X(q[104])
X(q[153])
H(q[99])
CNOT(q[99], q[18])
Rz(q[99], PI / 7)
CZ(q[18], q[41])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
574 · Scenario Robotics 14
# Scenario 274: Robotics path planning and collision flags: scenario 14
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[34])
X(q[113])
X(q[22])
H(q[148])
CNOT(q[148], q[103])
Rz(q[148], PI / 8)
CZ(q[103], q[130])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
575 · Scenario Robotics 15
# Scenario 275: Robotics path planning and collision flags: scenario 15
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[47])
X(q[94])
X(q[23])
H(q[17])
CNOT(q[17], q[32])
Rz(q[17], PI / 4)
CZ(q[32], q[133])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
576 · Scenario Robotics 16
# Scenario 276: Robotics path planning and collision flags: scenario 16
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[130])
X(q[51])
X(q[32])
H(q[102])
CNOT(q[102], q[145])
Rz(q[102], PI / 5)
CZ(q[145], q[8])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
577 · Scenario Robotics 17
# Scenario 277: Robotics path planning and collision flags: scenario 17
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[97])
X(q[152])
X(q[83])
H(q[33])
CNOT(q[33], q[78])
Rz(q[33], PI / 6)
CZ(q[78], q[3])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
578 · Scenario Robotics 18
# Scenario 278: Robotics path planning and collision flags: scenario 18
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[92])
X(q[145])
X(q[86])
H(q[44])
CNOT(q[44], q[47])
Rz(q[44], PI / 7)
CZ(q[47], q[142])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
579 · Scenario Robotics 19
# Scenario 279: Robotics path planning and collision flags: scenario 19
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[109])
X(q[48])
X(q[131])
H(q[93])
CNOT(q[93], q[98])
Rz(q[93], PI / 8)
CZ(q[98], q[29])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
580 · Scenario Robotics 20
# Scenario 280: Robotics path planning and collision flags: scenario 20
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[52])
X(q[39])
X(q[28])
H(q[82])
CNOT(q[82], q[67])
Rz(q[82], PI / 4)
CZ(q[67], q[48])
print("scenario", "robotics", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
581 · Scenario Water Network 01
# Scenario 281: Water-network leakage localization: scenario 01
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[107])
X(q[148])
X(q[145])
H(q[95])
CNOT(q[95], q[82])
Rz(q[95], PI / 5)
CZ(q[82], q[49])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
582 · Scenario Water Network 02
# Scenario 282: Water-network leakage localization: scenario 02
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[50])
X(q[93])
X(q[140])
H(q[144])
CNOT(q[144], q[83])
Rz(q[144], PI / 6)
CZ(q[83], q[6])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
583 · Scenario Water Network 03
# Scenario 283: Water-network leakage localization: scenario 03
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[25])
X(q[30])
X(q[19])
H(q[145])
CNOT(q[145], q[76])
Rz(q[145], PI / 7)
CZ(q[76], q[87])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
584 · Scenario Water Network 04
# Scenario 284: Water-network leakage localization: scenario 04
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[26])
X(q[141])
X(q[82])
H(q[38])
CNOT(q[38], q[93])
Rz(q[38], PI / 8)
CZ(q[93], q[86])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
585 · Scenario Water Network 05
# Scenario 285: Water-network leakage localization: scenario 05
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[57])
X(q[134])
X(q[33])
H(q[147])
CNOT(q[147], q[102])
Rz(q[147], PI / 4)
CZ(q[102], q[113])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
586 · Scenario Water Network 06
# Scenario 286: Water-network leakage localization: scenario 06
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[84])
X(q[93])
X(q[106])
H(q[88])
CNOT(q[88], q[19])
Rz(q[88], PI / 5)
CZ(q[19], q[90])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
587 · Scenario Water Network 07
# Scenario 287: Water-network leakage localization: scenario 07
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[3])
X(q[34])
X(q[43])
H(q[101])
CNOT(q[101], q[88])
Rz(q[101], PI / 6)
CZ(q[88], q[9])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
588 · Scenario Water Network 08
# Scenario 288: Water-network leakage localization: scenario 08
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[114])
X(q[71])
X(q[108])
H(q[90])
CNOT(q[90], q[105])
Rz(q[90], PI / 7)
CZ(q[105], q[32])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
589 · Scenario Water Network 09
# Scenario 289: Water-network leakage localization: scenario 09
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[101])
X(q[76])
X(q[33])
H(q[141])
CNOT(q[141], q[88])
Rz(q[141], PI / 8)
CZ(q[88], q[143])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
590 · Scenario Water Network 10
# Scenario 290: Water-network leakage localization: scenario 10
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[62])
X(q[137])
X(q[28])
H(q[79])
CNOT(q[79], q[38])
Rz(q[79], PI / 4)
CZ(q[38], q[65])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
591 · Scenario Water Network 11
# Scenario 291: Water-network leakage localization: scenario 11
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[61])
X(q[38])
X(q[67])
H(q[81])
CNOT(q[81], q[108])
Rz(q[81], PI / 5)
CZ(q[108], q[131])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
592 · Scenario Water Network 12
# Scenario 292: Water-network leakage localization: scenario 12
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[110])
X(q[129])
X(q[100])
H(q[58])
CNOT(q[58], q[93])
Rz(q[58], PI / 6)
CZ(q[93], q[12])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
593 · Scenario Water Network 13
# Scenario 293: Water-network leakage localization: scenario 13
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[47])
X(q[112])
X(q[41])
H(q[35])
CNOT(q[35], q[134])
Rz(q[35], PI / 7)
CZ(q[134], q[133])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
594 · Scenario Water Network 14
# Scenario 294: Water-network leakage localization: scenario 14
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[18])
X(q[11])
X(q[142])
H(q[86])
CNOT(q[86], q[83])
Rz(q[86], PI / 8)
CZ(q[83], q[42])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
595 · Scenario Water Network 15
# Scenario 295: Water-network leakage localization: scenario 15
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[67])
X(q[24])
X(q[43])
H(q[127])
CNOT(q[127], q[22])
Rz(q[127], PI / 4)
CZ(q[22], q[93])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
596 · Scenario Water Network 16
# Scenario 296: Water-network leakage localization: scenario 16
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[38])
X(q[135])
X(q[28])
H(q[74])
CNOT(q[74], q[45])
Rz(q[74], PI / 5)
CZ(q[45], q[20])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
597 · Scenario Water Network 17
# Scenario 297: Water-network leakage localization: scenario 17
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[63])
X(q[70])
X(q[3])
H(q[15])
CNOT(q[15], q[98])
Rz(q[15], PI / 6)
CZ(q[98], q[138])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
598 · Scenario Water Network 18
# Scenario 298: Water-network leakage localization: scenario 18
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[136])
X(q[7])
X(q[78])
H(q[153])
CNOT(q[153], q[130])
Rz(q[153], PI / 7)
CZ(q[130], q[43])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
599 · Scenario Water Network 19
# Scenario 299: Water-network leakage localization: scenario 19
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[93])
X(q[104])
X(q[99])
H(q[31])
CNOT(q[31], q[78])
Rz(q[31], PI / 8)
CZ(q[78], q[80])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
600 · Scenario Water Network 20
# Scenario 300: Water-network leakage localization: scenario 20
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[72])
X(q[119])
X(q[48])
H(q[42])
CNOT(q[42], q[57])
Rz(q[42], PI / 4)
CZ(q[57], q[8])
print("scenario", "water_network", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
Programs 601–700
601 · Scenario Agriculture 01
# Scenario 301: Precision-agriculture irrigation scheduling: scenario 01
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[23])
X(q[58])
X(q[69])
H(q[25])
CNOT(q[25], q[14])
Rz(q[25], PI / 5)
CZ(q[14], q[71])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
602 · Scenario Agriculture 02
# Scenario 302: Precision-agriculture irrigation scheduling: scenario 02
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[104])
X(q[59])
X(q[106])
H(q[121])
CNOT(q[121], q[38])
Rz(q[121], PI / 6)
CZ(q[38], q[71])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
603 · Scenario Agriculture 03
# Scenario 303: Precision-agriculture irrigation scheduling: scenario 03
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[83])
X(q[108])
X(q[107])
H(q[65])
CNOT(q[65], q[48])
Rz(q[65], PI / 7)
CZ(q[48], q[9])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
604 · Scenario Agriculture 04
# Scenario 304: Precision-agriculture irrigation scheduling: scenario 04
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[78])
X(q[7])
X(q[68])
H(q[18])
CNOT(q[18], q[37])
Rz(q[18], PI / 8)
CZ(q[37], q[36])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
605 · Scenario Agriculture 05
# Scenario 305: Precision-agriculture irrigation scheduling: scenario 05
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[51])
X(q[28])
X(q[41])
H(q[47])
CNOT(q[47], q[66])
Rz(q[47], PI / 4)
CZ(q[66], q[25])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
606 · Scenario Agriculture 06
# Scenario 306: Precision-agriculture irrigation scheduling: scenario 06
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[8])
X(q[73])
X(q[54])
H(q[100])
CNOT(q[100], q[69])
Rz(q[100], PI / 5)
CZ(q[69], q[16])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
607 · Scenario Agriculture 07
# Scenario 307: Precision-agriculture irrigation scheduling: scenario 07
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[13])
X(q[18])
X(q[7])
H(q[61])
CNOT(q[61], q[64])
Rz(q[61], PI / 6)
CZ(q[64], q[87])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
608 · Scenario Agriculture 08
# Scenario 308: Precision-agriculture irrigation scheduling: scenario 08
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[54])
X(q[69])
X(q[110])
H(q[92])
CNOT(q[92], q[15])
Rz(q[92], PI / 7)
CZ(q[15], q[94])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
609 · Scenario Agriculture 09
# Scenario 309: Precision-agriculture irrigation scheduling: scenario 09
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[119])
X(q[80])
X(q[125])
H(q[19])
CNOT(q[19], q[62])
Rz(q[19], PI / 8)
CZ(q[62], q[117])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
610 · Scenario Agriculture 10
# Scenario 310: Precision-agriculture irrigation scheduling: scenario 10
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[116])
X(q[45])
X(q[10])
H(q[56])
CNOT(q[56], q[27])
Rz(q[56], PI / 4)
CZ(q[27], q[66])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
611 · Scenario Agriculture 11
# Scenario 311: Precision-agriculture irrigation scheduling: scenario 11
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[123])
X(q[88])
X(q[39])
H(q[45])
CNOT(q[45], q[124])
Rz(q[45], PI / 5)
CZ(q[124], q[91])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
612 · Scenario Agriculture 12
# Scenario 312: Precision-agriculture irrigation scheduling: scenario 12
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[54])
X(q[47])
X(q[108])
H(q[18])
CNOT(q[18], q[69])
Rz(q[18], PI / 6)
CZ(q[69], q[68])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
613 · Scenario Agriculture 13
# Scenario 313: Precision-agriculture irrigation scheduling: scenario 13
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[25])
X(q[30])
X(q[113])
H(q[119])
CNOT(q[119], q[116])
Rz(q[119], PI / 7)
CZ(q[116], q[45])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
614 · Scenario Agriculture 14
# Scenario 314: Precision-agriculture irrigation scheduling: scenario 14
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[24])
X(q[17])
X(q[46])
H(q[20])
CNOT(q[20], q[87])
Rz(q[20], PI / 8)
CZ(q[87], q[62])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
615 · Scenario Agriculture 15
# Scenario 315: Precision-agriculture irrigation scheduling: scenario 15
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[53])
X(q[62])
X(q[107])
H(q[65])
CNOT(q[65], q[116])
Rz(q[65], PI / 4)
CZ(q[116], q[124])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
616 · Scenario Agriculture 16
# Scenario 316: Precision-agriculture irrigation scheduling: scenario 16
# Strategy: sparse + sharded execution for 130 logical qubits.
simulate(130, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(130)
X(q[108])
X(q[103])
X(q[24])
H(q[120])
CNOT(q[120], q[49])
Rz(q[120], PI / 5)
CZ(q[49], q[36])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(130))
}
617 · Scenario Agriculture 17
# Scenario 317: Precision-agriculture irrigation scheduling: scenario 17
# Strategy: sparse + sharded execution for 132 logical qubits.
simulate(132, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(132)
X(q[95])
X(q[76])
X(q[77])
H(q[107])
CNOT(q[107], q[74])
Rz(q[107], PI / 6)
CZ(q[74], q[49])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(132))
}
618 · Scenario Agriculture 18
# Scenario 318: Precision-agriculture irrigation scheduling: scenario 18
# Strategy: sparse + sharded execution for 134 logical qubits.
simulate(134, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(134)
X(q[130])
X(q[125])
X(q[116])
H(q[12])
CNOT(q[12], q[83])
Rz(q[12], PI / 7)
CZ(q[83], q[97])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(134))
}
619 · Scenario Agriculture 19
# Scenario 319: Precision-agriculture irrigation scheduling: scenario 19
# Strategy: sparse + sharded execution for 136 logical qubits.
simulate(136, engine="sharded", n_shards=13, workers=4, use_lookup=true) {
q = quantum_register(136)
X(q[65])
X(q[90])
X(q[103])
H(q[21])
CNOT(q[21], q[112])
Rz(q[21], PI / 8)
CZ(q[112], q[7])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(136))
}
620 · Scenario Agriculture 20
# Scenario 320: Precision-agriculture irrigation scheduling: scenario 20
# Strategy: sparse + sharded execution for 128 logical qubits.
simulate(128, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(128)
X(q[118])
X(q[79])
X(q[76])
H(q[74])
CNOT(q[74], q[77])
Rz(q[74], PI / 4)
CZ(q[77], q[20])
print("scenario", "agriculture", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(128))
}
621 · Scenario Manufacturing 01
# Scenario 321: Manufacturing quality-control root-cause graph: scenario 01
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(152, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(152)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
622 · Scenario Manufacturing 02
# Scenario 322: Manufacturing quality-control root-cause graph: scenario 02
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(154, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(154)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
623 · Scenario Manufacturing 03
# Scenario 323: Manufacturing quality-control root-cause graph: scenario 03
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(156, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(156)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
624 · Scenario Manufacturing 04
# Scenario 324: Manufacturing quality-control root-cause graph: scenario 04
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(158, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(158)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
625 · Scenario Manufacturing 05
# Scenario 325: Manufacturing quality-control root-cause graph: scenario 05
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(150, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(150)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
626 · Scenario Manufacturing 06
# Scenario 326: Manufacturing quality-control root-cause graph: scenario 06
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(152, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(152)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
627 · Scenario Manufacturing 07
# Scenario 327: Manufacturing quality-control root-cause graph: scenario 07
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(154, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(154)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
628 · Scenario Manufacturing 08
# Scenario 328: Manufacturing quality-control root-cause graph: scenario 08
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(156, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(156)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
629 · Scenario Manufacturing 09
# Scenario 329: Manufacturing quality-control root-cause graph: scenario 09
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(158, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(158)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 6)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
630 · Scenario Manufacturing 10
# Scenario 330: Manufacturing quality-control root-cause graph: scenario 10
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(150, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(150)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 7)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
631 · Scenario Manufacturing 11
# Scenario 331: Manufacturing quality-control root-cause graph: scenario 11
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(152, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(152)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 8)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
632 · Scenario Manufacturing 12
# Scenario 332: Manufacturing quality-control root-cause graph: scenario 12
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(154, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(154)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 3)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
633 · Scenario Manufacturing 13
# Scenario 333: Manufacturing quality-control root-cause graph: scenario 13
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(156, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(156)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
634 · Scenario Manufacturing 14
# Scenario 334: Manufacturing quality-control root-cause graph: scenario 14
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(158, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(158)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
635 · Scenario Manufacturing 15
# Scenario 335: Manufacturing quality-control root-cause graph: scenario 15
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(150, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(150)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
636 · Scenario Manufacturing 16
# Scenario 336: Manufacturing quality-control root-cause graph: scenario 16
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(152, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(152)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
637 · Scenario Manufacturing 17
# Scenario 337: Manufacturing quality-control root-cause graph: scenario 17
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(154, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(154)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
638 · Scenario Manufacturing 18
# Scenario 338: Manufacturing quality-control root-cause graph: scenario 18
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(156, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(156)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
639 · Scenario Manufacturing 19
# Scenario 339: Manufacturing quality-control root-cause graph: scenario 19
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(158, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(158)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
640 · Scenario Manufacturing 20
# Scenario 340: Manufacturing quality-control root-cause graph: scenario 20
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(150, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(150)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "manufacturing", hierarchical_report())
print("lookup", lookup_profile())
}
641 · Scenario Fraud 01
# Scenario 341: Payments fraud graph screening: scenario 01
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[135])
X(q[96])
X(q[133])
H(q[11])
CNOT(q[11], q[86])
Rz(q[11], PI / 5)
CZ(q[86], q[85])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
642 · Scenario Fraud 02
# Scenario 342: Payments fraud graph screening: scenario 02
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[102])
X(q[1])
X(q[54])
H(q[90])
CNOT(q[90], q[143])
Rz(q[90], PI / 6)
CZ(q[143], q[42])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
643 · Scenario Fraud 03
# Scenario 343: Payments fraud graph screening: scenario 03
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[1])
X(q[54])
X(q[151])
H(q[109])
CNOT(q[109], q[112])
Rz(q[109], PI / 7)
CZ(q[112], q[51])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
644 · Scenario Fraud 04
# Scenario 344: Payments fraud graph screening: scenario 04
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[136])
X(q[151])
X(q[126])
H(q[10])
CNOT(q[10], q[33])
Rz(q[10], PI / 8)
CZ(q[33], q[138])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
645 · Scenario Fraud 05
# Scenario 345: Payments fraud graph screening: scenario 05
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[117])
X(q[74])
X(q[93])
H(q[27])
CNOT(q[27], q[72])
Rz(q[27], PI / 4)
CZ(q[72], q[143])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
646 · Scenario Fraud 06
# Scenario 346: Payments fraud graph screening: scenario 06
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[112])
X(q[41])
X(q[94])
H(q[4])
CNOT(q[4], q[23])
Rz(q[4], PI / 5)
CZ(q[23], q[126])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
647 · Scenario Fraud 07
# Scenario 347: Payments fraud graph screening: scenario 07
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[55])
X(q[96])
X(q[111])
H(q[47])
CNOT(q[47], q[148])
Rz(q[47], PI / 6)
CZ(q[148], q[45])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
648 · Scenario Fraud 08
# Scenario 348: Payments fraud graph screening: scenario 08
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[90])
X(q[95])
X(q[84])
H(q[54])
CNOT(q[54], q[141])
Rz(q[54], PI / 7)
CZ(q[141], q[152])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
649 · Scenario Fraud 09
# Scenario 349: Payments fraud graph screening: scenario 09
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[53])
X(q[86])
X(q[77])
H(q[113])
CNOT(q[113], q[28])
Rz(q[113], PI / 8)
CZ(q[28], q[37])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
650 · Scenario Fraud 10
# Scenario 350: Payments fraud graph screening: scenario 10
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[122])
X(q[19])
X(q[98])
H(q[92])
CNOT(q[92], q[107])
Rz(q[92], PI / 4)
CZ(q[107], q[58])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
651 · Scenario Fraud 11
# Scenario 351: Payments fraud graph screening: scenario 11
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[89])
X(q[138])
X(q[55])
H(q[149])
CNOT(q[149], q[112])
Rz(q[149], PI / 5)
CZ(q[112], q[15])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
652 · Scenario Fraud 12
# Scenario 352: Payments fraud graph screening: scenario 12
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[8])
X(q[37])
X(q[14])
H(q[4])
CNOT(q[4], q[153])
Rz(q[4], PI / 6)
CZ(q[153], q[48])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
653 · Scenario Fraud 13
# Scenario 353: Payments fraud graph screening: scenario 13
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[23])
X(q[136])
X(q[17])
H(q[155])
CNOT(q[155], q[14])
Rz(q[155], PI / 7)
CZ(q[14], q[97])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
654 · Scenario Fraud 14
# Scenario 354: Payments fraud graph screening: scenario 14
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[128])
X(q[21])
X(q[28])
H(q[58])
CNOT(q[58], q[23])
Rz(q[58], PI / 8)
CZ(q[23], q[94])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
655 · Scenario Fraud 15
# Scenario 355: Payments fraud graph screening: scenario 15
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[127])
X(q[114])
X(q[103])
H(q[7])
CNOT(q[7], q[142])
Rz(q[7], PI / 4)
CZ(q[142], q[123])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
656 · Scenario Fraud 16
# Scenario 356: Payments fraud graph screening: scenario 16
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[66])
X(q[83])
X(q[16])
H(q[142])
CNOT(q[142], q[49])
Rz(q[142], PI / 5)
CZ(q[49], q[56])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
657 · Scenario Fraud 17
# Scenario 357: Payments fraud graph screening: scenario 17
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[115])
X(q[4])
X(q[51])
H(q[132])
CNOT(q[132], q[71])
Rz(q[132], PI / 6)
CZ(q[71], q[148])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
658 · Scenario Fraud 18
# Scenario 358: Payments fraud graph screening: scenario 18
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[112])
X(q[21])
X(q[106])
H(q[100])
CNOT(q[100], q[43])
Rz(q[100], PI / 7)
CZ(q[43], q[42])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
659 · Scenario Fraud 19
# Scenario 359: Payments fraud graph screening: scenario 19
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[45])
X(q[114])
X(q[137])
H(q[3])
CNOT(q[3], q[18])
Rz(q[3], PI / 8)
CZ(q[18], q[151])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
660 · Scenario Fraud 20
# Scenario 360: Payments fraud graph screening: scenario 20
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[132])
X(q[59])
X(q[108])
H(q[72])
CNOT(q[72], q[27])
Rz(q[72], PI / 4)
CZ(q[27], q[38])
print("scenario", "fraud", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
661 · Scenario Iot Edge 01
# Scenario 361: IoT edge fleet anomaly grouping: scenario 01
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(122, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(122)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
662 · Scenario Iot Edge 02
# Scenario 362: IoT edge fleet anomaly grouping: scenario 02
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(124, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(124)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
663 · Scenario Iot Edge 03
# Scenario 363: IoT edge fleet anomaly grouping: scenario 03
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(126, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(126)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
664 · Scenario Iot Edge 04
# Scenario 364: IoT edge fleet anomaly grouping: scenario 04
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(128, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(128)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
665 · Scenario Iot Edge 05
# Scenario 365: IoT edge fleet anomaly grouping: scenario 05
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(120, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(120)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
666 · Scenario Iot Edge 06
# Scenario 366: IoT edge fleet anomaly grouping: scenario 06
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(122, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(122)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
667 · Scenario Iot Edge 07
# Scenario 367: IoT edge fleet anomaly grouping: scenario 07
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(124, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(124)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
668 · Scenario Iot Edge 08
# Scenario 368: IoT edge fleet anomaly grouping: scenario 08
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(126, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(126)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
669 · Scenario Iot Edge 09
# Scenario 369: IoT edge fleet anomaly grouping: scenario 09
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(128, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(128)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 6)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
670 · Scenario Iot Edge 10
# Scenario 370: IoT edge fleet anomaly grouping: scenario 10
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(120, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(120)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 7)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
671 · Scenario Iot Edge 11
# Scenario 371: IoT edge fleet anomaly grouping: scenario 11
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(122, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(122)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 8)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
672 · Scenario Iot Edge 12
# Scenario 372: IoT edge fleet anomaly grouping: scenario 12
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(124, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(124)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 3)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
673 · Scenario Iot Edge 13
# Scenario 373: IoT edge fleet anomaly grouping: scenario 13
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(126, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(126)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
674 · Scenario Iot Edge 14
# Scenario 374: IoT edge fleet anomaly grouping: scenario 14
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(128, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(128)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
675 · Scenario Iot Edge 15
# Scenario 375: IoT edge fleet anomaly grouping: scenario 15
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(120, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(120)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
676 · Scenario Iot Edge 16
# Scenario 376: IoT edge fleet anomaly grouping: scenario 16
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(122, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(122)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
677 · Scenario Iot Edge 17
# Scenario 377: IoT edge fleet anomaly grouping: scenario 17
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(124, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(124)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
678 · Scenario Iot Edge 18
# Scenario 378: IoT edge fleet anomaly grouping: scenario 18
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(126, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(126)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
679 · Scenario Iot Edge 19
# Scenario 379: IoT edge fleet anomaly grouping: scenario 19
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(128, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(128)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
680 · Scenario Iot Edge 20
# Scenario 380: IoT edge fleet anomaly grouping: scenario 20
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(120, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(120)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "iot_edge", hierarchical_report())
print("lookup", lookup_profile())
}
681 · Scenario Quantum Network 01
# Scenario 381: Quantum-network repeater and QKD planning: scenario 01
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(514, engine="stabilizer") {
q = quantum_register(514)
for i in range(0, 220, 21) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(514, []))
print("sample", measure_all(shots=2))
}
682 · Scenario Quantum Network 02
# Scenario 382: Quantum-network repeater and QKD planning: scenario 02
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(516, engine="stabilizer") {
q = quantum_register(516)
for i in range(0, 220, 22) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(516, []))
print("sample", measure_all(shots=2))
}
683 · Scenario Quantum Network 03
# Scenario 383: Quantum-network repeater and QKD planning: scenario 03
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(518, engine="stabilizer") {
q = quantum_register(518)
for i in range(0, 220, 23) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(518, []))
print("sample", measure_all(shots=2))
}
684 · Scenario Quantum Network 04
# Scenario 384: Quantum-network repeater and QKD planning: scenario 04
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(520, engine="stabilizer") {
q = quantum_register(520)
for i in range(0, 220, 24) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(520, []))
print("sample", measure_all(shots=2))
}
685 · Scenario Quantum Network 05
# Scenario 385: Quantum-network repeater and QKD planning: scenario 05
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(512, engine="stabilizer") {
q = quantum_register(512)
for i in range(0, 220, 25) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(512, []))
print("sample", measure_all(shots=2))
}
686 · Scenario Quantum Network 06
# Scenario 386: Quantum-network repeater and QKD planning: scenario 06
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(514, engine="stabilizer") {
q = quantum_register(514)
for i in range(0, 220, 26) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(514, []))
print("sample", measure_all(shots=2))
}
687 · Scenario Quantum Network 07
# Scenario 387: Quantum-network repeater and QKD planning: scenario 07
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(516, engine="stabilizer") {
q = quantum_register(516)
for i in range(0, 220, 20) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(516, []))
print("sample", measure_all(shots=2))
}
688 · Scenario Quantum Network 08
# Scenario 388: Quantum-network repeater and QKD planning: scenario 08
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(518, engine="stabilizer") {
q = quantum_register(518)
for i in range(0, 220, 21) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(518, []))
print("sample", measure_all(shots=2))
}
689 · Scenario Quantum Network 09
# Scenario 389: Quantum-network repeater and QKD planning: scenario 09
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(520, engine="stabilizer") {
q = quantum_register(520)
for i in range(0, 220, 22) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(520, []))
print("sample", measure_all(shots=2))
}
690 · Scenario Quantum Network 10
# Scenario 390: Quantum-network repeater and QKD planning: scenario 10
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(512, engine="stabilizer") {
q = quantum_register(512)
for i in range(0, 220, 23) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(512, []))
print("sample", measure_all(shots=2))
}
691 · Scenario Quantum Network 11
# Scenario 391: Quantum-network repeater and QKD planning: scenario 11
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(514, engine="stabilizer") {
q = quantum_register(514)
for i in range(0, 220, 24) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(514, []))
print("sample", measure_all(shots=2))
}
692 · Scenario Quantum Network 12
# Scenario 392: Quantum-network repeater and QKD planning: scenario 12
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(516, engine="stabilizer") {
q = quantum_register(516)
for i in range(0, 220, 25) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(516, []))
print("sample", measure_all(shots=2))
}
693 · Scenario Quantum Network 13
# Scenario 393: Quantum-network repeater and QKD planning: scenario 13
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(518, engine="stabilizer") {
q = quantum_register(518)
for i in range(0, 220, 26) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(518, []))
print("sample", measure_all(shots=2))
}
694 · Scenario Quantum Network 14
# Scenario 394: Quantum-network repeater and QKD planning: scenario 14
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(520, engine="stabilizer") {
q = quantum_register(520)
for i in range(0, 220, 20) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(520, []))
print("sample", measure_all(shots=2))
}
695 · Scenario Quantum Network 15
# Scenario 395: Quantum-network repeater and QKD planning: scenario 15
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(512, engine="stabilizer") {
q = quantum_register(512)
for i in range(0, 220, 21) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(512, []))
print("sample", measure_all(shots=2))
}
696 · Scenario Quantum Network 16
# Scenario 396: Quantum-network repeater and QKD planning: scenario 16
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(514, engine="stabilizer") {
q = quantum_register(514)
for i in range(0, 220, 22) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(514, []))
print("sample", measure_all(shots=2))
}
697 · Scenario Quantum Network 17
# Scenario 397: Quantum-network repeater and QKD planning: scenario 17
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(516, engine="stabilizer") {
q = quantum_register(516)
for i in range(0, 220, 23) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(516, []))
print("sample", measure_all(shots=2))
}
698 · Scenario Quantum Network 18
# Scenario 398: Quantum-network repeater and QKD planning: scenario 18
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(518, engine="stabilizer") {
q = quantum_register(518)
for i in range(0, 220, 24) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(518, []))
print("sample", measure_all(shots=2))
}
699 · Scenario Quantum Network 19
# Scenario 399: Quantum-network repeater and QKD planning: scenario 19
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(520, engine="stabilizer") {
q = quantum_register(520)
for i in range(0, 220, 25) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(520, []))
print("sample", measure_all(shots=2))
}
700 · Scenario Quantum Network 20
# Scenario 400: Quantum-network repeater and QKD planning: scenario 20
# Strategy: Clifford-only large circuit via stabilizer tableau.
simulate(512, engine="stabilizer") {
q = quantum_register(512)
for i in range(0, 220, 26) {
H(q[i])
CNOT(q[i], q[i + 1])
CZ(q[i + 1], q[i + 2])
S(q[i + 2])
}
print("scenario", "quantum_network", "backend", plan_backend(512, []))
print("sample", measure_all(shots=2))
}
Programs 701–800
701 · Scenario Pqc Migration 01
# Scenario 401: Post-quantum cryptography migration audit: scenario 01
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[11])
X(q[44])
X(q[121])
H(q[79])
CNOT(q[79], q[90])
Rz(q[79], PI / 5)
CZ(q[90], q[138])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
702 · Scenario Pqc Migration 02
# Scenario 402: Post-quantum cryptography migration audit: scenario 02
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[0])
X(q[63])
X(q[122])
H(q[36])
CNOT(q[36], q[49])
Rz(q[36], PI / 6)
CZ(q[49], q[78])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
703 · Scenario Pqc Migration 03
# Scenario 403: Post-quantum cryptography migration audit: scenario 03
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[133])
X(q[78])
X(q[127])
H(q[73])
CNOT(q[73], q[148])
Rz(q[73], PI / 7)
CZ(q[148], q[15])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
704 · Scenario Pqc Migration 04
# Scenario 404: Post-quantum cryptography migration audit: scenario 04
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[88])
X(q[3])
X(q[12])
H(q[140])
CNOT(q[140], q[131])
Rz(q[140], PI / 8)
CZ(q[131], q[32])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
705 · Scenario Pqc Migration 05
# Scenario 405: Post-quantum cryptography migration audit: scenario 05
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[27])
X(q[14])
X(q[3])
H(q[57])
CNOT(q[57], q[42])
Rz(q[57], PI / 4)
CZ(q[42], q[23])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
706 · Scenario Pqc Migration 06
# Scenario 406: Post-quantum cryptography migration audit: scenario 06
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[140])
X(q[141])
X(q[82])
H(q[72])
CNOT(q[72], q[27])
Rz(q[72], PI / 5)
CZ(q[27], q[10])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
707 · Scenario Pqc Migration 07
# Scenario 407: Post-quantum cryptography migration audit: scenario 07
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[107])
X(q[4])
X(q[25])
H(q[147])
CNOT(q[147], q[54])
Rz(q[147], PI / 6)
CZ(q[54], q[81])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
708 · Scenario Pqc Migration 08
# Scenario 408: Post-quantum cryptography migration audit: scenario 08
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[66])
X(q[119])
X(q[60])
H(q[18])
CNOT(q[18], q[21])
Rz(q[18], PI / 7)
CZ(q[21], q[116])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
709 · Scenario Pqc Migration 09
# Scenario 409: Post-quantum cryptography migration audit: scenario 09
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[5])
X(q[96])
X(q[121])
H(q[85])
CNOT(q[85], q[126])
Rz(q[85], PI / 8)
CZ(q[126], q[89])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
710 · Scenario Pqc Migration 10
# Scenario 410: Post-quantum cryptography migration audit: scenario 10
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[32])
X(q[109])
X(q[8])
H(q[122])
CNOT(q[122], q[77])
Rz(q[122], PI / 4)
CZ(q[77], q[88])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
711 · Scenario Pqc Migration 11
# Scenario 411: Post-quantum cryptography migration audit: scenario 11
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[117])
X(q[86])
X(q[43])
H(q[65])
CNOT(q[65], q[116])
Rz(q[65], PI / 5)
CZ(q[116], q[51])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
712 · Scenario Pqc Migration 12
# Scenario 412: Post-quantum cryptography migration audit: scenario 12
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[60])
X(q[99])
X(q[82])
H(q[104])
CNOT(q[104], q[59])
Rz(q[104], PI / 6)
CZ(q[59], q[84])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
713 · Scenario Pqc Migration 13
# Scenario 413: Post-quantum cryptography migration audit: scenario 13
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[155])
X(q[4])
X(q[149])
H(q[119])
CNOT(q[119], q[50])
Rz(q[119], PI / 7)
CZ(q[50], q[61])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
714 · Scenario Pqc Migration 14
# Scenario 414: Post-quantum cryptography migration audit: scenario 14
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[80])
X(q[31])
X(q[72])
H(q[30])
CNOT(q[30], q[121])
Rz(q[30], PI / 8)
CZ(q[121], q[146])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
715 · Scenario Pqc Migration 15
# Scenario 415: Post-quantum cryptography migration audit: scenario 15
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[37])
X(q[112])
X(q[3])
H(q[54])
CNOT(q[54], q[13])
Rz(q[54], PI / 4)
CZ(q[13], q[40])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
716 · Scenario Pqc Migration 16
# Scenario 416: Post-quantum cryptography migration audit: scenario 16
# Strategy: sparse + sharded execution for 152 logical qubits.
simulate(152, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(152)
X(q[94])
X(q[31])
X(q[4])
H(q[58])
CNOT(q[58], q[53])
Rz(q[58], PI / 5)
CZ(q[53], q[92])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(152))
}
717 · Scenario Pqc Migration 17
# Scenario 417: Post-quantum cryptography migration audit: scenario 17
# Strategy: sparse + sharded execution for 154 logical qubits.
simulate(154, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(154)
X(q[13])
X(q[40])
X(q[139])
H(q[61])
CNOT(q[61], q[64])
Rz(q[61], PI / 6)
CZ(q[64], q[87])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(154))
}
718 · Scenario Pqc Migration 18
# Scenario 418: Post-quantum cryptography migration audit: scenario 18
# Strategy: sparse + sharded execution for 156 logical qubits.
simulate(156, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(156)
X(q[88])
X(q[45])
X(q[82])
H(q[64])
CNOT(q[64], q[79])
Rz(q[64], PI / 7)
CZ(q[79], q[6])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(156))
}
719 · Scenario Pqc Migration 19
# Scenario 419: Post-quantum cryptography migration audit: scenario 19
# Strategy: sparse + sharded execution for 158 logical qubits.
simulate(158, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(158)
X(q[155])
X(q[124])
X(q[23])
H(q[133])
CNOT(q[133], q[116])
Rz(q[133], PI / 8)
CZ(q[116], q[45])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(158))
}
720 · Scenario Pqc Migration 20
# Scenario 420: Post-quantum cryptography migration audit: scenario 20
# Strategy: sparse + sharded execution for 150 logical qubits.
simulate(150, engine="sharded", n_shards=15, workers=4, use_lookup=true) {
q = quantum_register(150)
X(q[42])
X(q[149])
X(q[18])
H(q[102])
CNOT(q[102], q[147])
Rz(q[102], PI / 4)
CZ(q[147], q[68])
print("scenario", "pqc_migration", "nnz", engine_nnz())
print("lookup", lookup_profile())
print("estimate", estimate_qubits(150))
}
721 · Scenario Qec Satellite 01
# Scenario 421: Quantum error correction for satellite links: scenario 01
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("phase_flip", base=0, name="satellite_link_1")
qec_encode(logical)
qec_inject_error(logical, "X", 1)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "phase_flip", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
722 · Scenario Qec Satellite 02
# Scenario 422: Quantum error correction for satellite links: scenario 02
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("shor9", base=0, name="satellite_link_2")
qec_encode(logical)
qec_inject_error(logical, "X", 2)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "shor9", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
723 · Scenario Qec Satellite 03
# Scenario 423: Quantum error correction for satellite links: scenario 03
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("steane7", base=0, name="satellite_link_3")
qec_encode(logical)
qec_inject_error(logical, "X", 0)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "steane7", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
724 · Scenario Qec Satellite 04
# Scenario 424: Quantum error correction for satellite links: scenario 04
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("five_qubit", base=0, name="satellite_link_4")
qec_encode(logical)
qec_inject_error(logical, "X", 1)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "five_qubit", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
725 · Scenario Qec Satellite 05
# Scenario 425: Quantum error correction for satellite links: scenario 05
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("bit_flip", base=0, name="satellite_link_5")
qec_encode(logical)
qec_inject_error(logical, "X", 2)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "bit_flip", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
726 · Scenario Qec Satellite 06
# Scenario 426: Quantum error correction for satellite links: scenario 06
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("phase_flip", base=0, name="satellite_link_6")
qec_encode(logical)
qec_inject_error(logical, "X", 0)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "phase_flip", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
727 · Scenario Qec Satellite 07
# Scenario 427: Quantum error correction for satellite links: scenario 07
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("shor9", base=0, name="satellite_link_7")
qec_encode(logical)
qec_inject_error(logical, "X", 1)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "shor9", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
728 · Scenario Qec Satellite 08
# Scenario 428: Quantum error correction for satellite links: scenario 08
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("steane7", base=0, name="satellite_link_8")
qec_encode(logical)
qec_inject_error(logical, "X", 2)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "steane7", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
729 · Scenario Qec Satellite 09
# Scenario 429: Quantum error correction for satellite links: scenario 09
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("five_qubit", base=0, name="satellite_link_9")
qec_encode(logical)
qec_inject_error(logical, "X", 0)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "five_qubit", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
730 · Scenario Qec Satellite 10
# Scenario 430: Quantum error correction for satellite links: scenario 10
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("bit_flip", base=0, name="satellite_link_10")
qec_encode(logical)
qec_inject_error(logical, "X", 1)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "bit_flip", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
731 · Scenario Qec Satellite 11
# Scenario 431: Quantum error correction for satellite links: scenario 11
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("phase_flip", base=0, name="satellite_link_11")
qec_encode(logical)
qec_inject_error(logical, "X", 2)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "phase_flip", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
732 · Scenario Qec Satellite 12
# Scenario 432: Quantum error correction for satellite links: scenario 12
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("shor9", base=0, name="satellite_link_12")
qec_encode(logical)
qec_inject_error(logical, "X", 0)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "shor9", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
733 · Scenario Qec Satellite 13
# Scenario 433: Quantum error correction for satellite links: scenario 13
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("steane7", base=0, name="satellite_link_13")
qec_encode(logical)
qec_inject_error(logical, "X", 1)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "steane7", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
734 · Scenario Qec Satellite 14
# Scenario 434: Quantum error correction for satellite links: scenario 14
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("five_qubit", base=0, name="satellite_link_14")
qec_encode(logical)
qec_inject_error(logical, "X", 2)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "five_qubit", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
735 · Scenario Qec Satellite 15
# Scenario 435: Quantum error correction for satellite links: scenario 15
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("bit_flip", base=0, name="satellite_link_15")
qec_encode(logical)
qec_inject_error(logical, "X", 0)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "bit_flip", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
736 · Scenario Qec Satellite 16
# Scenario 436: Quantum error correction for satellite links: scenario 16
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("phase_flip", base=0, name="satellite_link_16")
qec_encode(logical)
qec_inject_error(logical, "X", 1)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "phase_flip", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
737 · Scenario Qec Satellite 17
# Scenario 437: Quantum error correction for satellite links: scenario 17
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("shor9", base=0, name="satellite_link_17")
qec_encode(logical)
qec_inject_error(logical, "X", 2)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "shor9", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
738 · Scenario Qec Satellite 18
# Scenario 438: Quantum error correction for satellite links: scenario 18
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("steane7", base=0, name="satellite_link_18")
qec_encode(logical)
qec_inject_error(logical, "X", 0)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "steane7", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
739 · Scenario Qec Satellite 19
# Scenario 439: Quantum error correction for satellite links: scenario 19
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("five_qubit", base=0, name="satellite_link_19")
qec_encode(logical)
qec_inject_error(logical, "X", 1)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "five_qubit", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
740 · Scenario Qec Satellite 20
# Scenario 440: Quantum error correction for satellite links: scenario 20
# Strategy: logical qubit QEC workflow with syndrome extraction and correction.
simulate(27, engine="sparse", use_lookup=true) {
q = quantum_register(27)
logical = qec_logical("bit_flip", base=0, name="satellite_link_20")
qec_encode(logical)
qec_inject_error(logical, "X", 2)
syndrome = qec_syndrome_and_correct(logical)
logical_z(logical)
print("scenario", "qec_satellite", "code", "bit_flip", "syndrome", syndrome)
print("stim", qec_stim_syndrome_text(logical))
}
741 · Scenario Hardware Calibration 01
# Scenario 441: Quantum hardware calibration export and verification: scenario 01
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(123, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(123)
H(q[0])
CNOT(q[0], q[1])
X(q[122])
Rz(q[1], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("qiskit"))
}
742 · Scenario Hardware Calibration 02
# Scenario 442: Quantum hardware calibration export and verification: scenario 02
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(125, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(125)
H(q[0])
CNOT(q[0], q[1])
X(q[124])
Rz(q[2], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("braket"))
}
743 · Scenario Hardware Calibration 03
# Scenario 443: Quantum hardware calibration export and verification: scenario 03
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(127, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(127)
H(q[0])
CNOT(q[0], q[1])
X(q[126])
Rz(q[3], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("azure"))
}
744 · Scenario Hardware Calibration 04
# Scenario 444: Quantum hardware calibration export and verification: scenario 04
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(129, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(129)
H(q[0])
CNOT(q[0], q[1])
X(q[128])
Rz(q[4], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("cirq"))
}
745 · Scenario Hardware Calibration 05
# Scenario 445: Quantum hardware calibration export and verification: scenario 05
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(121, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(121)
H(q[0])
CNOT(q[0], q[1])
X(q[120])
Rz(q[5], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("pennylane"))
}
746 · Scenario Hardware Calibration 06
# Scenario 446: Quantum hardware calibration export and verification: scenario 06
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(123, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(123)
H(q[0])
CNOT(q[0], q[1])
X(q[122])
Rz(q[6], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("openqasm3"))
}
747 · Scenario Hardware Calibration 07
# Scenario 447: Quantum hardware calibration export and verification: scenario 07
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(125, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(125)
H(q[0])
CNOT(q[0], q[1])
X(q[124])
Rz(q[7], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("qiskit"))
}
748 · Scenario Hardware Calibration 08
# Scenario 448: Quantum hardware calibration export and verification: scenario 08
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(127, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(127)
H(q[0])
CNOT(q[0], q[1])
X(q[126])
Rz(q[8], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("braket"))
}
749 · Scenario Hardware Calibration 09
# Scenario 449: Quantum hardware calibration export and verification: scenario 09
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(129, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(129)
H(q[0])
CNOT(q[0], q[1])
X(q[128])
Rz(q[9], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("azure"))
}
750 · Scenario Hardware Calibration 10
# Scenario 450: Quantum hardware calibration export and verification: scenario 10
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(121, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(121)
H(q[0])
CNOT(q[0], q[1])
X(q[120])
Rz(q[10], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("cirq"))
}
751 · Scenario Hardware Calibration 11
# Scenario 451: Quantum hardware calibration export and verification: scenario 11
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(123, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(123)
H(q[0])
CNOT(q[0], q[1])
X(q[122])
Rz(q[11], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("pennylane"))
}
752 · Scenario Hardware Calibration 12
# Scenario 452: Quantum hardware calibration export and verification: scenario 12
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(125, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(125)
H(q[0])
CNOT(q[0], q[1])
X(q[124])
Rz(q[12], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("openqasm3"))
}
753 · Scenario Hardware Calibration 13
# Scenario 453: Quantum hardware calibration export and verification: scenario 13
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(127, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(127)
H(q[0])
CNOT(q[0], q[1])
X(q[126])
Rz(q[13], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("qiskit"))
}
754 · Scenario Hardware Calibration 14
# Scenario 454: Quantum hardware calibration export and verification: scenario 14
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(129, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(129)
H(q[0])
CNOT(q[0], q[1])
X(q[128])
Rz(q[14], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("braket"))
}
755 · Scenario Hardware Calibration 15
# Scenario 455: Quantum hardware calibration export and verification: scenario 15
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(121, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(121)
H(q[0])
CNOT(q[0], q[1])
X(q[120])
Rz(q[15], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("azure"))
}
756 · Scenario Hardware Calibration 16
# Scenario 456: Quantum hardware calibration export and verification: scenario 16
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(123, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(123)
H(q[0])
CNOT(q[0], q[1])
X(q[122])
Rz(q[16], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("cirq"))
}
757 · Scenario Hardware Calibration 17
# Scenario 457: Quantum hardware calibration export and verification: scenario 17
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(125, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(125)
H(q[0])
CNOT(q[0], q[1])
X(q[124])
Rz(q[17], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("pennylane"))
}
758 · Scenario Hardware Calibration 18
# Scenario 458: Quantum hardware calibration export and verification: scenario 18
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(127, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(127)
H(q[0])
CNOT(q[0], q[1])
X(q[126])
Rz(q[18], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("openqasm3"))
}
759 · Scenario Hardware Calibration 19
# Scenario 459: Quantum hardware calibration export and verification: scenario 19
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(129, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(129)
H(q[0])
CNOT(q[0], q[1])
X(q[128])
Rz(q[19], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("qiskit"))
}
760 · Scenario Hardware Calibration 20
# Scenario 460: Quantum hardware calibration export and verification: scenario 20
# Strategy: generate a scalable sparse circuit and export the hardware payload.
simulate(121, engine="sharded", n_shards=12, workers=4, use_lookup=true) {
q = quantum_register(121)
H(q[0])
CNOT(q[0], q[1])
X(q[120])
Rz(q[20], PI / 8)
print("scenario", "hardware_calibration", hardware_payload_summary())
print(export_hardware("braket"))
}
761 · Scenario Semiconductor 01
# Scenario 461: Semiconductor process-control anomaly map: scenario 01
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(162, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(162)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
762 · Scenario Semiconductor 02
# Scenario 462: Semiconductor process-control anomaly map: scenario 02
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(164, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(164)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
763 · Scenario Semiconductor 03
# Scenario 463: Semiconductor process-control anomaly map: scenario 03
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(166, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(166)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
764 · Scenario Semiconductor 04
# Scenario 464: Semiconductor process-control anomaly map: scenario 04
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(168, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(168)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
765 · Scenario Semiconductor 05
# Scenario 465: Semiconductor process-control anomaly map: scenario 05
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(160, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(160)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
766 · Scenario Semiconductor 06
# Scenario 466: Semiconductor process-control anomaly map: scenario 06
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(162, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(162)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
767 · Scenario Semiconductor 07
# Scenario 467: Semiconductor process-control anomaly map: scenario 07
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(164, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(164)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
768 · Scenario Semiconductor 08
# Scenario 468: Semiconductor process-control anomaly map: scenario 08
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(166, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(166)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
769 · Scenario Semiconductor 09
# Scenario 469: Semiconductor process-control anomaly map: scenario 09
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(168, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(168)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 6)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
770 · Scenario Semiconductor 10
# Scenario 470: Semiconductor process-control anomaly map: scenario 10
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(160, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(160)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 7)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
771 · Scenario Semiconductor 11
# Scenario 471: Semiconductor process-control anomaly map: scenario 11
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(162, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(162)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 8)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
772 · Scenario Semiconductor 12
# Scenario 472: Semiconductor process-control anomaly map: scenario 12
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(164, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(164)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 3)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
773 · Scenario Semiconductor 13
# Scenario 473: Semiconductor process-control anomaly map: scenario 13
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(166, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(166)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 4)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
774 · Scenario Semiconductor 14
# Scenario 474: Semiconductor process-control anomaly map: scenario 14
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(168, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(168)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 5)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
775 · Scenario Semiconductor 15
# Scenario 475: Semiconductor process-control anomaly map: scenario 15
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(160, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(160)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 6)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
776 · Scenario Semiconductor 16
# Scenario 476: Semiconductor process-control anomaly map: scenario 16
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(162, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(162)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 7)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
777 · Scenario Semiconductor 17
# Scenario 477: Semiconductor process-control anomaly map: scenario 17
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(164, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(164)
block_A = shard("block_A", 10, 19)
block_B = shard("block_B", 20, 29)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[19], q[20])
Rz(q[21], PI / 8)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
778 · Scenario Semiconductor 18
# Scenario 478: Semiconductor process-control anomaly map: scenario 18
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(166, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(166)
block_A = shard("block_A", 20, 29)
block_B = shard("block_B", 30, 39)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[29], q[30])
Rz(q[31], PI / 3)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
779 · Scenario Semiconductor 19
# Scenario 479: Semiconductor process-control anomaly map: scenario 19
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(168, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(168)
block_A = shard("block_A", 30, 39)
block_B = shard("block_B", 40, 49)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[39], q[40])
Rz(q[41], PI / 4)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
780 · Scenario Semiconductor 20
# Scenario 480: Semiconductor process-control anomaly map: scenario 20
# Strategy: 10-qubit dense local blocks with safe MPS promotion for bridge gates.
simulate(160, engine="hierarchical", block_size=10, max_bond_dim=null, cutoff=0.0, use_lookup=true) {
q = quantum_register(160)
block_A = shard("block_A", 0, 9)
block_B = shard("block_B", 10, 19)
apply_block("H", block_A)
apply_block("X", block_B)
CNOT(q[9], q[10])
Rz(q[11], PI / 5)
print("scenario", "semiconductor", hierarchical_report())
print("lookup", lookup_profile())
}
781 · Scenario Seismology 01
# Scenario 481: Seismic event correlation screening: scenario 01
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(138, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(138)
H(q[0])
for i in range(0, 61) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(138))
}
782 · Scenario Seismology 02
# Scenario 482: Seismic event correlation screening: scenario 02
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(140, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(140)
H(q[0])
for i in range(0, 62) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(140))
}
783 · Scenario Seismology 03
# Scenario 483: Seismic event correlation screening: scenario 03
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(142, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(142)
H(q[0])
for i in range(0, 63) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(142))
}
784 · Scenario Seismology 04
# Scenario 484: Seismic event correlation screening: scenario 04
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(144, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(144)
H(q[0])
for i in range(0, 64) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(144))
}
785 · Scenario Seismology 05
# Scenario 485: Seismic event correlation screening: scenario 05
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(136, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(136)
H(q[0])
for i in range(0, 65) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(136))
}
786 · Scenario Seismology 06
# Scenario 486: Seismic event correlation screening: scenario 06
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(138, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(138)
H(q[0])
for i in range(0, 66) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(138))
}
787 · Scenario Seismology 07
# Scenario 487: Seismic event correlation screening: scenario 07
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(140, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(140)
H(q[0])
for i in range(0, 67) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(140))
}
788 · Scenario Seismology 08
# Scenario 488: Seismic event correlation screening: scenario 08
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(142, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(142)
H(q[0])
for i in range(0, 68) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(142))
}
789 · Scenario Seismology 09
# Scenario 489: Seismic event correlation screening: scenario 09
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(144, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(144)
H(q[0])
for i in range(0, 69) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(144))
}
790 · Scenario Seismology 10
# Scenario 490: Seismic event correlation screening: scenario 10
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(136, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(136)
H(q[0])
for i in range(0, 70) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(136))
}
791 · Scenario Seismology 11
# Scenario 491: Seismic event correlation screening: scenario 11
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(138, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(138)
H(q[0])
for i in range(0, 71) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(138))
}
792 · Scenario Seismology 12
# Scenario 492: Seismic event correlation screening: scenario 12
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(140, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(140)
H(q[0])
for i in range(0, 72) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(140))
}
793 · Scenario Seismology 13
# Scenario 493: Seismic event correlation screening: scenario 13
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(142, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(142)
H(q[0])
for i in range(0, 73) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(142))
}
794 · Scenario Seismology 14
# Scenario 494: Seismic event correlation screening: scenario 14
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(144, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(144)
H(q[0])
for i in range(0, 74) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(144))
}
795 · Scenario Seismology 15
# Scenario 495: Seismic event correlation screening: scenario 15
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(136, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(136)
H(q[0])
for i in range(0, 75) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(136))
}
796 · Scenario Seismology 16
# Scenario 496: Seismic event correlation screening: scenario 16
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(138, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(138)
H(q[0])
for i in range(0, 76) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(138))
}
797 · Scenario Seismology 17
# Scenario 497: Seismic event correlation screening: scenario 17
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(140, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(140)
H(q[0])
for i in range(0, 77) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 6)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(140))
}
798 · Scenario Seismology 18
# Scenario 498: Seismic event correlation screening: scenario 18
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(142, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(142)
H(q[0])
for i in range(0, 78) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 7)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(142))
}
799 · Scenario Seismology 19
# Scenario 499: Seismic event correlation screening: scenario 19
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(144, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(144)
H(q[0])
for i in range(0, 79) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 8)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(144))
}
800 · Scenario Seismology 20
# Scenario 500: Seismic event correlation screening: scenario 20
# Strategy: MPS/tensor-network for low-entanglement neighbor structure.
simulate(136, engine="mps", max_bond_dim=64, cutoff=1e-12, use_lookup=true) {
q = quantum_register(136)
H(q[0])
for i in range(0, 80) {
CNOT(q[i], q[i + 1])
Rz(q[i + 1], PI / 5)
}
print("scenario", "seismology", "mps_low_entanglement_chain")
print("estimate", estimate_qubits(136))
}
Programs 801–820
801 · Adaptive Planner 120Q Sparse
# 120-qubit sparse IoT anomaly circuit with adaptive backend explanation
simulate(120, engine="auto") {
q = quantum_register(120)
X(q[119])
H(q[0])
CNOT(q[0], q[1])
Rz(q[50], PI/8)
print(explain_backend(120, [("X", [119], []), ("H", [0], []), ("CNOT", [0,1], []), ("Rz", [50], [PI/8])]))
print(engine_nnz())
}
802 · Extended Stabilizer 500Q Few T
# Mostly Clifford 500-qubit city graph with two non-Clifford feature injections
print(explain_backend(500, [("H", [0], []), ("CNOT", [0,1], []), ("T", [10], []), ("Tdg", [20], [])]))
803 · Hierarchical Components 160Q Lookup
# 160 qubits as independent <=10q components, suitable for hierarchical lookup shards
ops = [("H", [0], []), ("CNOT", [0,1], []), ("H", [20], []), ("CNOT", [20,21], []), ("X", [150], [])]
print(planner_features(160, ops))
print(explain_backend(160, ops))
804 · Qasm3 Mid Circuit Control
# OpenQASM 3 mid-circuit measurement and classical control template
print(qasm3_mid_circuit_template(2))
805 · Gpu Cuquantum Planning
# GPU and cuQuantum capability planning for a 28-qubit dense subproblem
print(gpu_capabilities())
print(gpu_memory_estimate(28))
print(cuquantum_recommendation(28, "dense"))
806 · Distributed Cluster Capabilities
# Distributed sparse cluster feature discovery
print(distributed_capabilities())
807 · Qec Stim Surface Task
# Stim-style surface-code task; uses real Stim generator if installed, fallback text otherwise
print(qec_stim_surface_task(3, 3, 0.001))
808 · Qec Threshold Sweep Plan
# QEC threshold sweep plan for external Stim/PyMatching runs
print(qec_threshold_sweep())
809 · Qec Resource Estimate Satellite
# Rough logical-to-physical estimate for a satellite QEC link
print(qec_logical_resource_estimate(128, 50000, 5, 12))
810 · Conformance Report Bell
# Verify a Bell circuit against installed external simulators where available
simulate(2) {
q = quantum_register(2)
H(q[0])
CNOT(q[0], q[1])
print(conformance_report())
}
811 · Finance 140Q Sparse Portfolio
# 140-qubit sparse financial risk flags; planner should avoid dense simulation
ops = [("X", [3], []), ("X", [77], []), ("H", [0], []), ("CNOT", [0,77], []), ("Rz", [139], [PI/16])]
print(explain_backend(140, ops))
simulate(140, engine="sharded", n_shards=16, workers=4) {
q = quantum_register(140)
X(q[3]); X(q[77]); H(q[0]); CNOT(q[0], q[77]); Rz(q[139], PI/16)
print(engine_nnz())
}
812 · Cybersecurity 1000Q Stabilizer
# 1000-qubit Clifford graph-state cybersecurity correlation screen
ops = [("H", [0], []), ("CNOT", [0,1], []), ("CZ", [1,2], []), ("H", [999], [])]
print(explain_backend(1000, ops))
813 · Supply Chain 180Q Mps Bridge
# 180-qubit supply-chain chain with limited bridges; planner should prefer MPS/hierarchical
ops = [("H", [9], []), ("CNOT", [9,10], []), ("CNOT", [19,20], []), ("Rz", [55], [0.01])]
print(explain_backend(180, ops))
814 · Drug Discovery 124Q Mps Feature Map
# 124-qubit low-entanglement molecular feature map planning
ops = [("Ry", [i], [0.01 * i]) for i in range(0, 12)]
print(explain_backend(124, ops))
815 · Azure Openqasm3 Payload
# Hardware-neutral OpenQASM 3 export payload for cloud submission
simulate(3) {
q = quantum_register(3)
H(q[0]); CNOT(q[0], q[1]); Rz(q[2], PI/4)
print(export_hardware("azure"))
}
816 · Cudaq Export Payload
# CUDA-Q/cuQuantum-oriented OpenQASM 3 fallback payload
simulate(4) {
q = quantum_register(4)
H(q[0]); CNOT(q[0], q[1]); CNOT(q[2], q[3])
print(export_hardware("cudaq"))
}
817 · Surface Code Matching Adapter
# Surface-code decoder and threshold planning metadata
code = qec_code("surface", 3)
print(code)
print(qec_threshold_sweep([3,5], [0.001, 0.005]))
818 · Dense Refusal 120Q Explanation
# Explain why dense 120-qubit state-vector simulation is unsafe
print(explain_120_qubits_dense())
print(explain_backend(120, [("H", [i], []) for i in range(0, 120)]))
819 · Lookup Profile 10Q Kernel
# Packaged lookup tables for <=10q component execution
simulate(10, engine="sparse", use_lookup=true) {
q = quantum_register(10)
H(q[0]); X(q[9]); SX(q[5]); CNOT(q[0], q[1])
print(lookup_profile())
}
820 · Multicloud Export Summary
# Hardware target summary for IBM/Qiskit, AWS/Braket, Azure, Cirq, PennyLane, CUDA-Q and QEC tools
simulate(2) {
q = quantum_register(2)
H(q[0]); CNOT(q[0], q[1])
print(hardware_payload_summary())
print(hardware_targets())
}