Preparing the catalog and filters…Katalog ve filtreler hazırlanıyor…
Başlangıç kodu
module ftqc_resource_estimate;
use std.qft2;
@estimate(code: "surface", distance: 7, target_error: 1e-3);
fn main() {
let q: QReg<3> = qreg[3];
qft2(q[0..1]);
T(q[2]);
CCNOT(q[0], q[1], q[2]);
Rz(q[0], PI / 8);
return 0;
}Beklenen çıktı
Output normal NISQ resource satırında depth ve gate sayılarını gösterir
Output @estimate kaynaklı bir FTQC estimate satırı da gösterir
FTQC kartı code distance, logical qubit, physical qubit, T-count, T-depth, magic state ve runtime değerlerini raporlar
QASM/IR export inceleme için estimate metadata'sını korur
Debug checklist
Starter code'u çalıştırın ve Output içinde FTQC estimate'i bulun
Circuit sekmesini açıp QFT helper'ın gate'lere açıldığını doğrulayın
Distance değerini 7'den 9'a alıp physical qubit tahminini karşılaştırın
T veya CCNOT'u kaldırıp T-count ve magic state değerlerinin neden değiştiğini açıklayın
NISQ gate count ile FTQC physical cost ayrımını tek cümleyle yazın
Genişletme görevi
Başka bir non-Clifford Rz açısı ekleyin ve T-count, T-depth, magic state ve physical qubit değerlerini karşılaştırın.