08. High-Dimensional Qudit API & Developer Guide

dev.magesguild.io — Multi-Radix Quantum Information Beyond the Binary Qubit (POST /v1/qudit)

══════════════════════════════════════════════════════════════════════════════════════════════════
  ENDPOINT:              POST /v1/qudit
  CONTENT-TYPE:          application/json
  ALGEBRAIC GROUPS:      SU(d) for d = 3 (Qutrits), d = 4 (Ququarts), d = 7 (Prime Qudits)
  AUTHENTICATION:        Unauthenticated Public Evaluation (Until Friday Nov 27 Midnight UTC)
  CAPACITY:              Up to 75 Logical Qudits (Trial) • Up to 150 Logical Qudits (Paid)
══════════════════════════════════════════════════════════════════════════════════════════════════

1. Overview: The Post-Binary Quantum Frontier

For decades, the quantum computing industry has operated under a single restrictive abstraction: the binary qubit ($d=2$).

Yet almost all physical quantum computing hardware is natively high-dimensional:

Until now, software developers and quantum researchers were forced to discard these physical states because existing platforms (Qiskit, Cirq, PennyLane) clamp execution to binary qubits.

Project PRISM is the world's first cloud API providing native, high-performance multi-radix qudit registers ($SU(d), d \ge 2$) with zero transpile-to-binary penalties.


2. Key Advantages of High-Dimensional Qudits

2.1 Exponential Hilbert Density

A register of $N$ qudits of dimension $d$ spans a state space of dimension $\mathcal{H} = d^N$:

You achieve identical computational expressivity with fewer physical nodes, halved interconnect routing, and drastically reduced bipartite entanglement complexity.

2.2 The Qutrit Superpower ($d=3$): Ancilla-Free Multi-Controlled Logic

In standard qubits, synthesizing a 3-qubit Toffoli (CCX) gate requires at least 6 CNOT gates and circuit depth $\ge 8$, or extra ancilla qubits to store intermediate products.

In PRISM Qutrits, the third level $|2\rangle$ acts as an internal, temporary scratchpad:

2.3 The Ququart Superpower ($d=4$): 1:1 Spatial Molecular Orbitals

In standard quantum chemistry, Jordan–Wigner mappings require 2 qubits per spatial orbital and generate long non-local $Z$-string parity ladders ($\bigotimes Z_k$) that decay into noise.

In PRISM Ququarts, one ququart maps 1:1 to an entire physical spatial molecular orbital:

Because electron pairs are composite bosons, singlet pair hopping ($|3, 0\rangle \leftrightarrow |0, 3\rangle$) is strictly local ($SU(4) \otimes SU(4)$) with ZERO Jordan–Wigner strings! Active register count is cut in half, and ansatz gate depth collapses from $\mathcal{O}(M^4)$ to $\mathcal{O}(M^2)$.


3. Mathematical Gate Matrix: Generalized Weyl–Heisenberg Algebra

For an arbitrary local dimension $d$, the computational basis states ${|j\rangle}_{j=0}^{d-1}$ are transformed via the unitary Weyl operators:

  Gate Operation      Mathematical Definition                             Operator Name
  ──────────────────  ──────────────────────────────────────────────────  ─────────────────────
  Shift: X_d          X_d |j⟩ = |(j + 1) mod d⟩                           Generalized Bit-Flip
  Clock: Z_d          Z_d |j⟩ = ω^j |j⟩, where ω = exp(i * 2π/d)          Generalized Phase-Flip
  Chrestenson: H_d    H_d = (1/√d) ∑_{j,k} ω^(j*k) |j⟩⟨k|                 Generalized Hadamard
  Controlled-Shift    CX_d |c, t⟩ = |c, (t + c) mod d⟩                    Generalized CNOT
  Pair-Hop            |3, 0⟩ ↔ |0, 3⟩ (Ququarts only)                     Singlet Pair Transfer

4. REST API Request Schema (POST /v1/qudit)

{
  "dimension": 4,
  "num_qudits": 2,
  "gates": [
    {"gate": "Shift", "target": 0, "steps": 3},
    {"gate": "H", "target": 1},
    {"gate": "CX", "control": 0, "target": 1},
    {"gate": "PairHop", "qudits": [0, 1]}
  ],
  "observables": ["statevector", "probabilities", "entropy", "density_matrix"],
  "subsystem": [0]
}

Parameter Specification:


5. Python Developer Quickstart: The QuditCircuit Class

You can construct and simulate qudit circuits using standard Python with zero external C++ dependencies:

import requests
import json

PRISM_QUDIT_URL = "https://www.magesguild.io/api/prism/qudit"

class QuditCircuit:
    def __init__(self, num_qudits: int, dimension: int = 3):
        self.num_qudits = num_qudits
        self.dimension = dimension
        self.gates = []

    def h(self, target: int):
        self.gates.append({"gate": "H", "target": target})
        return self

    def shift(self, target: int, steps: int = 1):
        self.gates.append({"gate": "Shift", "target": target, "steps": steps})
        return self

    def clock(self, target: int, power: int = 1):
        self.gates.append({"gate": "Clock", "target": target, "power": power})
        return self

    def cx(self, control: int, target: int):
        self.gates.append({"gate": "CX", "control": control, "target": target})
        return self

    def pair_hop(self, q1: int, q2: int):
        if self.dimension != 4:
            raise ValueError("pair_hop requires dimension=4 (Ququarts)")
        self.gates.append({"gate": "PairHop", "qudits": [q1, q2]})
        return self

    def run(self):
        headers = {
            "Content-Type": "application/json"
        }
        payload = {
            "dimension": self.dimension,
            "num_qudits": self.num_qudits,
            "gates": self.gates,
            "observables": ["statevector", "entropy", "probabilities"]
        }
        r = requests.post(PRISM_QUDIT_URL, json=payload, headers=headers)
        return r.json()

# Example 1: 2-Qutrit Entangled Maximally Mixed State (Bell State in SU(3))
qc_qutrit = QuditCircuit(num_qudits=2, dimension=3)
qc_qutrit.h(0).cx(0, 1)

# Example 2: Molecular Spatial Orbital Singlet Transfer (Ququarts, d=4)
qc_spatial = QuditCircuit(num_qudits=2, dimension=4)
qc_spatial.shift(0, 3)     # Populate orbital 0 with singlet electron pair |3>
qc_spatial.pair_hop(0, 1)  # Execute local pair transfer to orbital 1 with ZERO strings

6. Training & Migration Guide: From Qubits to Qudits

Mental Shift 1: Stop Decomposing Spin

In classical qubit algorithms, you spent half your code transmuting orbital spin into separate qubit addresses. In Project PRISM, one ququart IS the spatial orbital. Stop allocating two wires; allocate one wire with $d=4$.

Mental Shift 2: Think in Clock and Shift, Not Just X and Z

In binary qubits, $X^2 = I$ and $Z^2 = I$. In dimension $d$, $X_d^d = I$ and $Z_d^d = I$. The gates form continuous cyclical ladders through Hilbert space.

Mental Shift 3: Exploit Ancilla-Free Subspaces

When designing multi-control boolean logic or search oracles, use higher levels ($|2\rangle, |3\rangle$) as temporary internal scratchpads instead of allocating physical ancilla wires.


7. Commercial & Pilot Access

For enterprise custom qudit manifolds ($d > 7$) or materials lattice extensions, contact licensing@magesguild.io.