Repository navigation
Enhancements
- SDK: Added
get_quantum_program(program_id), which fetches an already-synthesized quantum program by its ID. - Execution: Added
provider_sessiontoExecutionSessionandvariational_minimize(defaultTrue) so users can opt out of provider-side runtime sessions. Standalone one-shot helpers (sample,observe, andcalculate_state_vector) never open a provider session.
Bug Fixes
-
Execution:
sampleandobserveprint the Studio job page for the organization site. The job still runs on the Classiq API. -
Synthesis: Fixed internal errors for a quantum array indexed by a value that is not an integer: a classical array (
q[idx]for aCArray[CInt]parameteridx), a real number (q[0.5]or aCRealargument), a struct, or a quantum variable. Synthesis now reports that array indices must be integers, and also rejects aCBoolindex, which was previously read as 0 or 1. To pass several elements, use[q[idx[i]] for i in range(idx.len)]; to index with a real-valued expression, round it withfloor, as inq[floor(log(x, 2))].
Interface Changes
add_ripple_carry_cdkmandadd_ripple_carry_shallow: Theauxargument was removed. Call them asadd_ripple_carry_cdkm(left, extend_left, right); synthesis allocates the auxiliary qubits the adder needs, as it does forcanonical_add.