Kapı modeli köprüsüGate-model bridge

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.

Durum vektörüStatevector≤ 14 kübitqubits
Yoğunluk matrisiDensity matrix≤ 8 kübitqubits
ZNE referans koşusuZNE reference run56,76x56.76x
Heron r2 yerel kapılarHeron r2 native gatesrz, sx, x, cz

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: validateQasm3 sözdizimini, simulateQasm3 metni bağımsız bir simülatörle yeniden çalıştırır.Validation: validateQasm3 checks the syntax, simulateQasm3 re-runs the text in an independent simulator.
  • Optimizasyon: optimizeQaoa açıları kesin durum vektörüyle ayarlar; yaklaşım oranı ve optimum olasılığı raporlanır.Optimisation: optimizeQaoa tunes the angles on an exact statevector and reports the approximation ratio and the probability of the optimum.
  • Dışa aktarım: Qiskit SparsePauliOp, PennyLane qml.Hamiltonian, Cirq devresi ve D-Wave dimod BQM.Export: Qiskit SparsePauliOp, PennyLane qml.Hamiltonian, Cirq circuit and D-Wave dimod BQM.
biçim örneği · 3 kübit, p = 1format sample · 3 qubits, p = 1
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;
Hata azaltımıError mitigation

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 G→G(G†G)k 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 G→G(G†G)k scales the noise by 1, 3 and 5; the zero-noise value is estimated from these three points.

1350 idealE(0)
Sarı: gürültülü beklenen değerler (λ = 1, 3, 5); mavi: Richardson eğrisi; yeşil: ekstrapolasyon ve ideal değer.Yellow: noisy expectation values (λ = 1, 3, 5); blue: Richardson curve; green: extrapolation and ideal value.

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

Sık sorulan sorularFrequently asked questions

QAOA, ZNE ve donanım hakkındaAbout QAOA, ZNE and hardware

QuboForge kuantum üstünlüğü iddia ediyor mu?Does QuboForge claim quantum advantage?
Hayır. dSB ve bSB klasik, kuantum-ilhamlı sezgisellerdir. QAOA aynı örnekler üzerinde karşılaştırılan kapı modeli karşılığıdır; amaç aynı problemi her iki dünyada da tekrarlanabilir şekilde çalıştırmaktır.No. dSB and bSB are classical, quantum-inspired heuristics. QAOA is the gate-model counterpart compared on the same instances; the goal is to run the same problem reproducibly in both worlds.
Sıfır gürültü ekstrapolasyonu (ZNE) nasıl çalışır?How does zero-noise extrapolation (ZNE) work?
Her kapı G, G (G† G)^k ile değiştirilerek gürültü 1, 3 ve 5 kat büyütülür. Bu ölçeklerde ölçülen beklenen değerlerden Richardson ekstrapolasyonu ile sıfır gürültüdeki değer tahmin edilir. Okuma hatası katlamayla ölçeklenmediği için ZNE onu gidermez.Each gate G is replaced by G (G† G)^k, scaling the noise by 1, 3 and 5. Richardson extrapolation estimates the zero-noise value from the expectation values measured at these scales. Readout error is not scaled by folding, so ZNE does not remove it.
IBM Heron r2 üzerinde çalıştırmak için ne gerekir?What is needed to run on IBM Heron r2?
Kuru çalıştırma için hiçbir hesap gerekmez: python -m quboforge.ibm_runtime --dry-run. Gerçek donanım için IBM_QUANTUM_TOKEN ortam değişkeni ve quboforge[ibm] ek paketi gerekir; kullanılabilir işlemcileri IBM Quantum Platform üzerinden kontrol edin.The dry run needs no account: python -m quboforge.ibm_runtime --dry-run. Real hardware needs the IBM_QUANTUM_TOKEN environment variable and the quboforge[ibm] extra; check the available processors on the IBM Quantum Platform.
Üretilen devreyi Qiskit, PennyLane veya Cirq ile kullanabilir miyim?Can I use the circuit with Qiskit, PennyLane or Cirq?
Evet. OpenQASM 3.0 metni doğrudan içe aktarılabilir; ayrıca toQiskit SparsePauliOp listesi, toPennyLane qml.Hamiltonian kodu, to_cirq_circuit ve to_qiskit_circuit köprüleri ile to_dimod_bqm dönüşümü sağlanır.Yes. The OpenQASM 3.0 text can be imported directly; in addition toQiskit gives a SparsePauliOp list, toPennyLane qml.Hamiltonian code, and there are to_cirq_circuit and to_qiskit_circuit bridges plus a to_dimod_bqm conversion. Kod örnekleriCode samples
Araştırma iş birliğiResearch collaboration

Ü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