OpenQASM 3.0 QAOA devre sentezi, Mitiq ZNE ve IBM Heron r2 köprüsüOpenQASM 3.0 QAOA circuit synthesis, Mitiq ZNE and the IBM Heron r2 bridge
Sanayi problemini çözdüğünüz QUBO'nun aynısı, tek çağrıyla bir QAOA devresine dönüşür. Devreyi kesin olarak simüle edin, gerçekçi gürültü altında çalıştırın, sıfır gürültü ekstrapolasyonu ile hatayı azaltın ve IBM Quantum Heron r2 işlemcilerine gönderin.The very QUBO you solve for an industrial problem becomes a QAOA circuit with one call. Simulate the circuit exactly, run it under realistic noise, reduce the error with zero-noise extrapolation and submit it to IBM Quantum Heron r2 processors.
QUBO'dan OpenQASM 3.0'aFrom QUBO to OpenQASM 3.0
Ising modeli Pauli-Z terimlerine çevrilir. Her ZZ terimi cx; rz; cx üçlüsü, her Z terimi tek bir rz, karıştırıcı ise rx(2β) olur. Açılar verilmezse devre parametrik üretilir ve input float[64] gamma_l bildirimleri içerir; böylece aynı metin bir optimizasyon döngüsünde tekrar kullanılabilir.The Ising model becomes Pauli-Z terms. Each ZZ term turns into a cx; rz; cx triple, each Z term into a single rz, the mixer into rx(2β). Without angles the circuit is emitted in parametric form with input float[64] gamma_l declarations, so the same text can be reused inside an optimisation loop.
- Doğrulama:
validateQasm3sözdizimini,simulateQasm3metni bağımsız bir simülatörle yeniden çalıştırır.Validation:validateQasm3checks the syntax,simulateQasm3re-runs the text in an independent simulator. - Optimizasyon:
optimizeQaoaaçıları kesin durum vektörüyle ayarlar; yaklaşım oranı ve optimum olasılığı raporlanır.Optimisation:optimizeQaoatunes the angles on an exact statevector and reports the approximation ratio and the probability of the optimum. - Dışa aktarım: Qiskit
SparsePauliOp, PennyLaneqml.Hamiltonian, Cirq devresi ve D-WavedimodBQM.Export: QiskitSparsePauliOp, PennyLaneqml.Hamiltonian, Cirq circuit and D-WavedimodBQM.
OPENQASM 3.0;
include "stdgates.inc";
// quboforge QAOA circuit: 3 qubits, p = 1
input float[64] gamma_1;
input float[64] beta_1;
qubit[3] q;
bit[3] c;
h q;
// layer 1: cost unitary exp(-i gamma H_C)
cx q[0], q[1];
rz(1 * gamma_1) q[1];
cx q[0], q[1];
cx q[1], q[2];
rz(1 * gamma_1) q[2];
cx q[1], q[2];
cx q[0], q[2];
rz(1 * gamma_1) q[2];
cx q[0], q[2];
// layer 1: mixer unitary exp(-i beta sum X)
rx(2 * beta_1) q;
measure q -> c;
Kapı katlama ve Richardson sıfır gürültü ekstrapolasyonuGate folding and Richardson zero-noise extrapolation
Devre kesin bir yoğunluk matrisi üzerinde depolarizan gürültüyle çalıştırılır. Kapılar ile katlanarak gürültü 1, 3 ve 5 kat büyütülür; bu üç noktadan sıfır gürültüdeki değer tahmin edilir.The circuit runs on an exact density matrix with depolarizing noise. Folding gates as scales the noise by 1, 3 and 5; the zero-noise value is estimated from these three points.
Referans koşuReference run
6 kübitlik 3-düzenli Max-Cut, p = 1, %0,1 tek kübit ve %1 iki kübit depolarizasyon: Richardson ZNE mutlak hatayı gürültülü değere göre 56,76 kat azaltır. Bu, atış gürültüsü olmayan kesin bir hesaptır; gerçek cihazlarda tutarlı hatalar, çapraz konuşma ve sızıntı da vardır.6-qubit 3-regular Max-Cut, p = 1, 0.1% one-qubit and 1% two-qubit depolarizing noise: Richardson ZNE reduces the absolute error 56.76 times relative to the noisy value. This is an exact calculation without shot noise; real devices also have coherent errors, crosstalk and leakage.
Mitiq
run_with_mitiq aynı deneyi mitiq.zne.execute_with_zne, RichardsonFactory ve fold_gates_at_random ile aynı kanalları taşıyan bir Cirq devresinde tekrarlar; iki yolun sonuçları karşılaştırılabilir.run_with_mitiq repeats the experiment through mitiq.zne.execute_with_zne, RichardsonFactory and fold_gates_at_random on a Cirq circuit with the same channels, so both paths can be compared.
IBM Quantum Heron r2
Kuru çalıştırma devreyi {rz, sx, x, cz} kapılarına yeniden yazar ve varsayılan Heron sınıfı hata oranlarıyla örnekler. Gerçek koşu için IBM_QUANTUM_TOKEN ve quboforge[ibm] yeterlidir; heavy-hex yerleşimi Qiskit transpiler ile yapılır.The dry run rewrites the circuit to {rz, sx, x, cz} and samples under assumed Heron-class error rates. A real run needs only IBM_QUANTUM_TOKEN and quboforge[ibm]; heavy-hex layout is done by the Qiskit transpiler. CLI rehberiCLI guide
QAOA, ZNE ve donanım hakkındaAbout QAOA, ZNE and hardware
QuboForge kuantum üstünlüğü iddia ediyor mu?Does QuboForge claim quantum advantage?
Sıfır gürültü ekstrapolasyonu (ZNE) nasıl çalışır?How does zero-noise extrapolation (ZNE) work?
IBM Heron r2 üzerinde çalıştırmak için ne gerekir?What is needed to run on IBM Heron r2?
Üretilen devreyi Qiskit, PennyLane veya Cirq ile kullanabilir miyim?Can I use the circuit with Qiskit, PennyLane or Cirq?
Üniversite, Ar-Ge merkezi veya hibe projeniz için ortak çalışalım.Let's work together on your university, R&D centre or grant project.
- Sanayi verisiyle QAOA ve dSB karşılaştırmalı çalışmalarıQAOA versus dSB studies on industrial data
- Apache-2.0 kodla tekrarlanabilir makale ekleriReproducible paper supplements with Apache-2.0 code