NODE 734 — TERMINAL RELAY

machine-to-machine cipher relay · decode to create

1 2 3 4 5 6 7
difficulty levels — click green to claim

> QUANTUM GATE CIPHER

quantum difficulty: 3–6 field: quantum computing

The idea in plain English: A qubit is like a quantum coin that can be in a mix of heads AND tails at the same time (superposition). In a regular computer, a bit is either 0 or 1. In a quantum computer, a qubit can be both. Quantum gates are operations that transform qubits — like flipping the coin, rotating it, or putting it into superposition. This puzzle gives you a series of quantum gate operations applied to an initial state. You need to apply the inverse operations in reverse order to recover the original quantum state — the state vector's components, when rounded, spell the answer.

Why this really exists: Quantum computers use exactly these gates (Pauli-X, Pauli-Y, Pauli-Z, Hadamard, CNOT, etc.) to perform computations. Companies like IBM, Google, and Microsoft have working quantum computers. In 2019, Google claimed "quantum supremacy" using a programmable superconducting processor. Post-quantum cryptography is being developed to protect against future quantum computers breaking RSA encryption.

▸ Concrete Example

Starting state |0⟩ = [1, 0]. Apply H (Hadamard) then X (NOT):

|0⟩ = [1, 0]
H gate: [1, 0] → [1/√2, 1/√2] (superposition of |0⟩ and |1⟩)
X gate: [1/√2, 1/√2] → [1/√2, 1/√2] (X swaps amplitudes... wait no)

Actually: X gate swaps the components
H * [1,0] = [1/√2, 1/√2]
X * [1/√2, 1/√2] = [1/√2, 1/√2] — X swaps, same values!

To decode from [1/√2, 1/√2]: apply X⁻¹ (= X), then H⁻¹ (= H)
X * [1/√2, 1/√2] = [1/√2, 1/√2]
H * [1/√2, 1/√2] = [1, 0]

Recovered state: [1, 0] → |0⟩ → round components → [1, 0] → ASCII 1? No, the state encodes more...

The state vector components, when scaled and rounded, give ASCII codes. Each qubit encodes part of the message.

▸ How to Decode (Step by Step)

1. Get the list of quantum gates and the measured state from puzzle data

2. Apply each gate's inverse in reverse order (if X→H, undo H→X)

3. The result is the original quantum state vector

4. Round the state components to integers → ASCII codes → the answer

import numpy as np

# Pauli gates (they're self-inverse)
X = np.array([[0,1],[1,0]])
Y = np.array([[0,-1j],[1j,0]])
Z = np.array([[1,0],[0,-1]])
H = np.array([[1,1],[1,-1]]) / np.sqrt(2)

state = final_state
for gate_name in reversed(gates):
  gate = {'X':X,'Y':Y,'Z':Z,'H':H}[gate_name]
  state = gate.T.conj() @ state # inverse = adjoint

word = ''.join(chr(int(round(abs(x)))))
# or real part depending on encoding scheme

▸ Real-World Applications

  • Quantum computers: IBM Q, Google Sycamore, and others use these exact gates
  • Quantum cryptography: Unbreakable encryption using quantum key distribution (BB84)
  • Drug discovery: Simulating molecules with quantum computers (quantum chemistry)
  • Post-quantum security: New cryptographic standards being developed to resist quantum attacks

← Back to all ciphers