Floki00/cirdit_multimodal_compile_3to5qubit_v1.1bd2c968349d0915580b5acbaf970d2fc446d2503circuit-compilation-diffusionnpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"cann": "8.5.1",
"npu_name": "Ascend910_9362",
"device_count": 2,
"genQC": "0.2.5",
"python": "3.11.14"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"target_unitary": "3-qubit QFT+Haar mix, dim 8x8 expanded to 32x32, SHA256 cdea9025686d64c9, source genQC paper QFT example",
"qubits": 3,
"max_gates": 32,
"gate_pool": [
"h",
"cx",
"ccx",
"swap",
"rx",
"ry",
"rz",
"cp"
],
"seed": 42,
"timesteps": 20,
"c_shape": [
1,
77
],
"latents_shape": [
1,
3,
32,
16
],
"U_shape": [
1,
2,
32,
32
],
"dtype": "float32"
}{
"tokens_shape": [
1,
3,
32
],
"params_shape": [
1,
1,
32
],
"non_pad_gates": 20,
"gate_histogram": {
"-3": 1,
"0": 14,
"5": 3,
"6": 1,
"7": 1,
"9": 76
},
"gate_valid": true,
"output_stats": "mean -0.0128 std 2.8915 shape [1,3,32,16]",
"sample_tokens_qubit0": [
0,
9,
0,
6,
0,
0,
0,
9,
9,
9
],
"fidelity": 1.0,
"fidelity_method": "CPU numpy complex128 post-processing |Tr(U_target^dagger U_gen)|/dim, U_gen re-unitarized via SVD"
}{
"reproducibility": "96/96 tokens identical (100.00%) on npu:0 with fixed seed 42",
"cpu_npu_comparison": "Same latents moved from CPU to NPU; outputs not directly compared due to RNG difference but fixed seed reproducibility verified on NPU separately; latent stats consistent"
}{
"warmup_runs": 2,
"stable_runs": 3,
"per_run_seconds": [
0.6595,
0.6713,
0.673
],
"avg_s_per_circuit": 0.6679,
"peak_memory_mb": 1510.6,
"device": "npu:0",
"synchronize": "torch.npu.synchronize() before and after timing"
}


#NPU #Ascend #Ascend910