Effective 24-Qubit Calculation
- The paper demonstrates that semi-boolean polynomial encoding enables ancilla-free, high-performance arithmetic circuits for modular, signed, and floating-point operations.
- It employs QFT-based methods with phase-cascade modifications to achieve efficient in-place multiplication, optimizing resource usage and circuit depth.
- Optimization techniques, including GMS gate substitutions, significantly reduce two-qubit gate depth while balancing trade-offs with limited ancilla availability.
Effective 24 qubit calculations employ semi-boolean polynomial (SBP) encoding to realize compact, high-performance, ancilla-free arithmetic circuits for unsigned integers, signed integers, and floating-point representations. These constructions optimize resource usage and circuit depth, enabling practical modular arithmetic and constant multiplication in the 24-qubit regime, as presented in the SBP formalism of "Efficient Floating Point Arithmetic for Quantum Computers" (Seidel et al., 2021). The following exposition details the encoding principles, constant multiplication workflow, signed and floating-point extensions, resource breakdown for the 24-qubit case, and trade-offs in circuit realization.
1. Semi-Boolean Polynomial Encoding for Modular Arithmetic
Arithmetic over the ring can be reformulated as the evaluation of semi-boolean polynomials, in which any -qubit state is prepared in the Fourier basis by . The SBP construction makes use of the diagonal -gate:
which imparts a phase on computational basis state . Applying an inverse quantum Fourier transform (QFT) yields .
A semi-boolean monomial for input vector has the form , for . The entire polynomial , comprising a sum over such monomials, is encoded by sequentially applying gates controlled by the necessary combinations, which are then fused through the additive property:
Thus, after the SBP circuit.
2. Ancilla-Free In-Place Multiplication by Classical Constants
To multiply an -qubit register by an odd classical constant (mod ), one uses the property that such are invertible modulo , making the mapping reversible:
The procedure is QFT-based:
- Apply QFT on all qubits.
- Replace every controlled-phase (CP) gate's angle in the QFT with (the "phase-cascade").
- Apply QFT.
The explicit QFT decomposition is:
modified for multiplication by as , with the Hadamard gates unaffected due to . The ancilla-free method requires only the main qubits.
Resource analysis:
- Qubits:
- H-gates: $2n$
- CP-gates: $3n(n-1)/2$
- Depth:
3. Extensions: Signed-Integer and Floating-Point Representations
a) Signed-Integer Encoding
Signed -bit integers are encoded via the two's-complement ring isomorphism as . Thus, modular operations (addition, subtraction, multiplication) mod directly implement signed arithmetic. The SBP circuit extends to qubits for full coverage of the signed range.
b) IEEE-Style Mono-Quantum Floating-Point
Floating-point numbers of the form are decomposed as follows:
- Sign: , encoded in a single qubit.
- Exponent: , kept classical.
- Mantissa: , in signed qubits.
Arithmetic on floating-point numbers reduces to SBP-encoded operations on the mantissas, with exponent tracking managed classically. e.g., to add and , select an output exponent , then:
4. Explicit 24-Qubit Circuit Example: Ancilla-Free In-Place Multiplication
A concrete instantiation uses all 24 qubits to store an unsigned integer and multiplies by (mod ):
Resource count for : | Resource | Value | |-----------------|--------| | Qubits | 24 | | H-gates | 48 | | CP-gates | 828 | | Total gates | 876 | | Circuit depth | ≈72 |
- CP count: $3n(n-1)/2 = 828$
- Depth: $3n = 72$ time-steps (each step: at most one H or CP per qubit)
- No ancillas are required.
5. Depth vs. Ancilla Trade-Offs and Performance Considerations
- Depth vs. Ancilla: The "ancilla-free" construction uses main qubits and achieves depth . With even 4 extra qubits, certain computations (e.g., multi-controlled monomials) could be isolated into ancillas, enabling CP gate parallelization and reducing depth by up to .
- SWAP Elimination: Use of the reverse-QFT trick removes the need for end SWAP operations.
- Monomial Ordering: In general SBP encoding, monomial sequencing and CP gate scheduling can enable further parallelism if ancillas are present. Constant multiplication requires only the standard QFT order.
- Phase Resolution: For , the minimum CP angle is rad; feasible implementation requires hardware phase error rad.
- GMS Gates: On ion-trap architectures where native XX gates are available, all 828 CP gates can be replaced with as few as 24 global Mølmer–Sørensen (GMS) pulses, reducing two-qubit depth from to .
6. Application Scope and Integration with Higher-Level Quantum Arithmetic
Any odd constant can be embedded via the same phase-cascade construction, yielding a generic, compact 24-qubit multiplier. Integration with signed and mono-quantum floating-point representations is immediate: reinterpret the 24 qubits as two's-complement mantissas, and manage the exponent classically. This allows seamless extension to quantum algorithms requiring mixed integer and floating-point arithmetic, maintaining circuit depth at the 24-qubit level for in-place modular multiplication, regardless of signedness or floating-point encoding (Seidel et al., 2021).