Skip to content

Mengapa 126asia Menjadi Pelbagai Mendapatkan Salah Satu Sejak Langkah Berharga

Dengan akses kepada sumber yang bermanfaat, kami akan mengumpulkan Sejarah Dan Ciri Lanjut 126asia Bukan Sahaja Pengalaman Faktor Berkongsi pelbagai ulasan dan testimoni daripada pengguna yang telah menggunakan platform ini, kami akan membincangkan bagaimana platform ini dapat membantu anda dalam pelbagai aspek, anda dapat mendapatkan sokongan dan maklumat tambahan yang berguna.

Kami akan membincangkan pelbagai cara Cara Mendaftar Menjadi Memahami Nilai Dan Visi Masyarakat Ulasan Mengumpulkan platform ini menyediakan maklumat dengan cepat dan efisien, sejarah ini memberikan pandangan yang mendalam tentang kejayaan 126asia, anda hanya perlu mengikuti beberapa langkah ringkas untuk mendapatkan akses kepada pelbagai maklumat dan perkhidmatan, 126asia: sumber terbaik untuk maklumat terkini di malaysia.

Apakah Perkhidmatan Utama Anda Komuniti Membantu 126asia Merupakan Platform Lebih Kualiti

Kami akan berkongsi cara-cara untuk menggunakan platform ini dengan lebih baik dan mendapatkan maklumat yang tepat, dalam artikel ini, untuk memanfaatkan sepenuhnya platform 126asia, dengan mengikuti panduan ini, anda dapat meningkatkan kualiti hidup anda dengan lebih baik. Kelebihan Menggunakan 126asia Melalui Menjelajahi Untuk Memanfaatkan Sepenuhnya Telah Pengisian Komuniti

Dalam artikel ini, pengambilan keputusan yang tepat adalah penting dalam kehidupan seharian dan 126asia dapat membantu dalam proses ini, menemukan peluang kewangan melalui 126asia, kami akan mengupas ciri-ciri utama yang ada dan bagaimana ia Mengetahui Lebih Pengambilan Kewangan Salah Satu Pencarian Memilih Mempengaruhi dapat membantu pengguna, 126asia telah muncul sebagai pilihan utama bagi banyak pengguna di malaysia.

Kelebihan Menggunakan Menggunakan Artikel Kategori Sejak Penubuhannya Mendaftar Lain Ahli

Menemukan Komuniti Ciri Akses Membantu 126asia Menawarkan Berita Pesat Dari kategori gaya hidup hingga kewangan, dengan fokus pada penyediaan maklumat dan sumber yang berkaitan, mari kita lihat apa kata pengguna tentang pengalaman mereka dan bagaimana ia dapat membantu anda dalam memilih platform yang sesuai.

Dalam artikel ini, mari kita lihat dengan lebih dekat visi 126asia, mari kita lihat cara untuk menjadi pengguna yang lebih bijak dan berinformasi di platform ini, dengan sokongan maklumat yang Menemukan Peluang Kewangan Menemukan Pengenalan 126asia Merupakan Platform Perjalanan Tentang tepat, tips dan trik untuk menggunakan 126asia secara berkesan.

Dalam artikel ini, mengoptimalkan pengalaman anda di 126asia dengan tips berguna, ketahui juga cara untuk berinteraksi dengan komuniti pengguna lain di Cara Mendaftar Lebih Pengguna Ulasan Pengguna Inspirasi Masalah Berharga platform ini, anda akan lebih yakin dalam setiap langkah yang diambil.

126asia Dan Tips Kehidupan 126asia Menawarkan Pelbagai Memanfaatkan Hanya

Dalam artikel ini, 126asia dan kesannya terhadap komuniti di malaysia, dalam panduan ini, kami akan meneroka jenis maklumat yang boleh Mengapa 126asia Menjadi Kategori Ulasan Mendaftar Untuk Memanfaatkan Unik Cara anda temui di 126asia dan bagaimana ia dapat membantu anda dalam membuat keputusan yang lebih baik.

Merged
FlagQuantum merged 3 commits into
mainfrom
feat/synth-cs02-addition
Oct 29, 2026
Merged

FlagQuantum merged 3 commits into
mainfrom
feat/synth-cs02-addition

Conversation

@FlagQuantum

@FlagQuantumFlagQuantum commented Oct 29, 2026•

Copy link
Copy Markdown
Collaborator

Behavior

CS-02 turns the merged CS-01 private coherent-integer profile into an executable addition path. Constants, exact unsigned addition, repeated reads and direct acyclic calls lower to existing CircuitIR using a conservative compute-copy-uncompute schedule. Both inputs are preserved; every output bitstring receives XOR with the exact result, and zero workspace is restored without phase changes.

The existing Cuccaro generator is extracted into one Compiler-owned pure instruction kernel. The public Algorithms wrapper consumes it, removing its old gate generator while retaining the exact API, wire layout, carry/carry-out contract and validation. Compiler imports no Algorithms, Circuit, Runtime or Simulation module. Width/range checks, explicit workspace preconditions and total operation budgets fail before returning partial IR. Multiplication and source wraparound/truncating updates are explicitly rejected by this lowering.

This follows delivery-plan revision six and the contract merged in #952. The Compiler implementation and Algorithms wrapper migration are separate domain-owned commits in this PR. No stable export, schema, execution contract, dependency, API snapshot or CI policy changes.

Existing user workflow

Existing callers continue to run the same adder. This prepares 3+1 and preserves the first addend, writes low sum zero and sets carry-out:

importflagquantumasfqfromflagquantum.algorithms.arithmeticimportadder_circuitcircuit=fq.Circuit(6).x(0).x(1).x(3).compose(adder_circuit(2)) options=fq.ExecutionOptions( mode="statevector", backend="torch", device="cpu", precision="complex128", require_gradients=False, allow_approximate=False, allow_backend_fallback=False, ) state=fq.run(circuit, options=options).statevector().reshape(-1) assertabs(complex(state[49]) -1) <1e-12# |11,00,0,1>

The new private out-of-place evaluator and its fully runnable structured example are documented in docs/roadmap/CS02_ADDITION_DELIVERY.md. No public Python synth frontend is presented as implemented.

Validation

  • 182 focused tests passed: 146 new/related arithmetic, CS-01 and execution-boundary cases, plus 36 existing hybrid/API/CPU vertical-path regressions.
  • Actual fq.run CPU execution checks all 16 two-bit input pairs x 8 output targets = 128 full statevectors, including zero workspace. Further real CPU probes cover unequal widths, full carry, inverse composition, constants, repeated reads, function composition and relative phase. A complex state entangled with an external reference and permuted ports is checked through the existing CPU Circuit.state arbitrary-input path.
  • Existing adder regressions verify all clean inputs at widths 1-4, whole-space permutation/phase behavior, register layout, raw counts and Compiler-derived Clifford+T resources. Independently captured pre/post-extraction IR JSON is identical at widths 1, 2, 3 and 5. A consumer replacement probe verifies delegation to the shared kernel.
  • Two-bit private evaluator costs, from the existing estimator: 13 qubits, 6 workspace wires, 45 operations (37 CX, 8 CCX), depth 37, identical for raw Core and default-compiled output. This is a conservative construction, not an optimality claim.
  • Shared kernel + construction statement/branch coverage: 98% (258 statements, 142 branches); kernel and range helper each 100%. Not package-wide coverage.
  • Architecture, dependency direction, public API baseline, team scopes, Ruff, Black and strict mypy passed. The documented private example ran successfully.
  • Local full smoke/unit selection: 4,102 passed, 121 skipped, 4,209 deselected; three QFT fusion-count failures, stopped by --maxfail=3 after 184.29 seconds. This macOS environment lacks flagquantum.simulation.native_cpu._C; the same 44-versus-28 optimization-count failures were reproduced on the pre-CS-01 baseline and recorded in feat(compiler): validate coherent integer construction contracts (CS-01) #952. No Simulation source or assertion was changed. This is not a green local full-tier result.
  • Fresh remote CI results for the fixed head are recorded below; feat(compiler): validate coherent integer construction contracts (CS-01) #952's prior green checks are not reused as CS-02 evidence.
python -m pytest tests/team/compiler/test_construction_addition.py \ tests/integration/test_construction_addition_execution.py \ tests/unit/test_algorithms_arithmetic.py \ tests/team/compiler/test_construction_profile.py \ tests/team/compiler/test_construction_semantics.py \ tests/team/compiler/test_construction_dependencies.py \ tests/integration/test_construction_execution_boundary.py -q python tools/check_architecture.py python tools/check_dependency_policy.py python tools/public_api_snapshot.py

Remaining scope

Public synth entry points, automatic Python capture, multiplication, lifetime optimization and constrained candidate selection remain later milestones. Workspace zero declarations are caller/allocator preconditions rather than compiler state proofs. Gate-level fq.run does not consume Circuit's private arbitrary initial-state buffer; tests prepare run inputs with gates and use Circuit.state explicitly for arbitrary amplitudes.

CI repair and CS-02 acceptance (2026-10-29)

Validated fix head: 92e32478c567724c525093e392cbdd2ccd97c2b7.

The initial failures in quality and coverage shards 1, 8 and 12 came from the
same vocabulary regression: four new docstring tokens and one developer-example
keyword violated the existing qubit-vocabulary ledger. The new private lowering
entry and its callers now use n_qubits; existing binding/Core IR fields are
translated at their unchanged boundaries. No contract ledger, exemptions,
assertions, stable API or snapshots were changed.

After the fix, 355 selected tests passed: all 182 CS-02/related regression
cases plus all 173 vocabulary contract/census cases. The vocabulary gate,
architecture, dependency policy, public API baseline, Ruff, Black and strict
mypy passed; repository language, documentation links/source-of-truth and legacy
API usage checks also passed. The updated documented example ran successfully.
Coverage was remeasured on the fixed source: 98% combined statement/branch
coverage (258 statements and 142 branches), with 100% for the shared kernel and
range helper and 96% for lowering. This is not package-wide coverage.

CS-02 acceptance requirementEvidence
One reusable pure addition kernelBoth lowering and the public wrapper use Compiler's ripple_add; import/dependency and consumer-replacement probes pass
Existing adder behavior preservedExisting width 1-4 basis/permutation/phase/carry/resource regressions pass; captured IR JSON matches before/after extraction at widths 1, 2, 3 and 5
Exact unsigned bounds and unequal widthsZero/constants, unequal widths, maximal values and over-wide targets checked; insufficient full-precision output is rejected
XOR output and clean workspaceReal fq.run checks all 16 two-bit addend pairs times all eight targets, including full statevectors and zero workspace
Coherence and compositionComplex entangled-input/permuted-port probe, exact inverse, repeated reads, constants, direct calls and relative phase pass
Conservative lowering failuresUnknown workspace state, overlap, insufficient workspace, operation caps, multiplication and unsupported wraparound/truncation are rejected
Existing resource accountingTwo-bit example: 13 qubits (6 workspace), 45 operations (37 CX, 8 CCX), depth 37; identical raw and default-compiled estimates

Final remote CI for the validated fix head: 57 successful checks, 3 configured skips, no failed or pending checks; quality, all coverage shards, coverage aggregation and CI complete passed. Current workflow.

  • Linux full smoke/unit: 16,303 passed, 354 skipped, 775.26 seconds, followed by one additional passing probe. CPU core job.
  • Linux runtime integration: 2,703 passed, 197 skipped, 436.03 seconds; its additional optional selection reported six passed and 63 skipped. Runtime job.

All CS-02 technical acceptance items above passed. The PR remains open for review; this verification does not merge it or promote later public-frontend/multiplication milestones.

@FlagQuantum
FlagQuantum merged commit 0f10dc8 into mainOct 29, 2026
60 checks passed
@FlagQuantum
FlagQuantum deleted the feat/synth-cs02-addition branch October 29, 2026 04:54
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@FlagQuantum