■ Introduction
Dear blueqat users, it has been a long time.
Several years have passed since the last update, and the landscape surrounding quantum computing—especially the forefront of real machine (hardware) development—has evolved significantly. While blueqat has been loved as an intuitive tool for "simulating quantum algorithms and solving applications," we have made the decision to undergo a major paradigm shift with an eye toward the next decade.
https://github.com/blueqat/blueqatSDK
(To be honest, with generative AI available now, I don't even read code anymore, so anything goes, but it has become necessary as middleware to operate semiconductor quantum computers.)
The biggest theme in this refresh is the evolution into "powerful and muscular middleware for developing semiconductor quantum computers (such as silicon spin qubits)."
■ Why a complete architecture overhaul now?
Controlling semiconductor quantum hardware, including silicon, requires advanced optimization at the low layer (middleware layer), such as physical qubit placement constraints, mapping to strict topologies, and real-time feedback control under cryogenic conditions.
Conventional application-first data structures had limitations in directly reflecting and controlling these "physical characteristics of hardware." Therefore, we rebuilt the core engine from scratch to serve as the most efficient bridge connecting hardware and high-level software.
■ Technical Update: What Has Changed?
The technical highlights of this major update are the following three points.
1. Migration of the backend core to PyTorch-based
The most significant change is the complete shift of the simulator's core backend to PyTorch (torch).
This is not merely about accelerating tensor calculations; the quantum circuit has fully integrated with PyTorch’s signature Autograd engine.
- Native Optimization of Variational Quantum Circuits (VQC): By defining gate parameters of the circuit (angles \(\theta\), etc.) as
torch.tensor(requires_grad=True), everything from quantum circuit execution to loss function calculation and gradient updates using standard PyTorch optimizers like Adam can be completed within a seamless Python loop. - Ease of GPU / Heterogeneous Device Support: Support for
device="cuda"has been standardized at the backend level, ensuring scalability to large-scale tensor network simulations.
2. Specification Change for State Vectors and Bit Arrays (Endianness)
To enhance compatibility with the physical index layout of semiconductor quantum hardware and industry-standard low-level representations, we have drastically changed the internal state vector representation and the order of bit arrays (endianness specification).
As a result, mapping that takes into account the physical qubit dot layout on actual machines and simulating swap insertion paths during transpilation can now be performed more intuitively and rigorously.
■ Seeing the New blueqat in Code (Example of Variational Quantum Optimization)
With PyTorch integration, training variational quantum algorithms (such as VQE) becomes this simple.
import torch
from blueqat import Circuit
# 1. Define parameters with PyTorch tensors enabling gradient tracking
theta = torch.tensor(0.0, dtype=torch.float64, requires_grad=True)
# 2. Apply PyTorch's standard Adam optimizer directly
optimizer = torch.optim.Adam([theta], lr=0.1)
for epoch in range(20):
optimizer.zero_grad()
# 3. Build the circuit and obtain the state vector (Statevector)
# A PyTorch computation graph is automatically generated inside the backend
c = Circuit(2).h[0].ry(theta)[1].cx[0, 1]
statevector = c.run(backend="statevector")
# 4. Calculate expectation values or losses (e.g., maximize the probability of a specific state)
prob_11 = torch.abs(statevector[3]) ** 2
loss = -prob_11 # Converted to a minimization problem
# 5. Backpropagation and parameter update
loss.backward()
optimizer.step()
print(f"Epoch {epoch}: theta = {theta.item():.4f}, Loss = {loss.item():.4f}")■ The Vision for Future blueqat
- Until Now: A "Simulator SDK" for solving quantum apps
- From Now On: "Core Middleware" for creating and operating semiconductor quantum hardware
We will nurture blueqat into infrastructure for the development of next-generation domestic and global semiconductor quantum computers, rather than just a computational tool.
Accompanying this first update in several years, there are drastic changes (breaking changes) that include partial loss of backward compatibility with past code, but this is a positive decision for the future where quantum computing moves from "theory" to "real hardware."
Source code for the newly revamped blueqat SDK and detailed migration guides will be progressively published on our GitHub repository (blueqat/blueqatSDK). Let us forge ahead into the new era of hardware-driven quantum computing together with the reborn Blueqat!