Upgrade Instructions
- Python SDK
- The IDE upgrades automatically.
Enhancements
samplefunction: Added a new top-levelsamplefunction for executing a quantum program and retrieving results as a DataFrame directly, without managing a job object. Supports single and batch execution — pass a list of parameter dictionaries toparametersto run multiple parameter sets and receive a list of DataFrames. Also supportsrun_via_classiq=Trueto run using Classiq’s provider credentials against your allocated budget. See the SDK reference for details.observefunction: Added a new publicobservefunction that computes the expectation value of a Hermitian observable with respect to a quantum program’s output state. Supports exact statevector calculation or shot-based estimation, batch execution, andrun_via_classiq. See the SDK reference for details.get_backend_detailsfunction: Added aget_backend_detailsfunction that returns a DataFrame of all supported quantum backends, including provider, backend name, type (hardware or simulator), qubit count, availability, pending jobs, and queue time.calculate_state_vectorfunction: Added a new publiccalculate_state_vectorfunction that returns the full state vector of a quantum program as a DataFrame. Supports batch execution by passing a list of parameter dictionaries. Available on Classiq simulators (e.g.classiq/simulator).minimizefunction: Added a new publicminimizefunction for variational optimization of a cost function over the parameter values of a quantum program. Supports Hamiltonian and classical cost functions,run_via_classiq, and improved input validation. See the SDK reference for details.- OpenQASM in
sampleandExecutionSession: You can pass OpenQASM 2.0 or 3.0 source as a string tosample()(first argument) or toExecutionSessioninstead of a synthesizedQuantumProgram. Results use the same histogram DataFrame shape (bitstring,counts, etc.). Theparametersargument is not supported for OpenQASM strings (use aQuantumProgramfor Qmodmainparameters, or bind parameters inside the QASM circuit). See the Execution section of the user guide. - Improve error messages related to qfunc arguments.
- Add
emulateonAzureBackendPreferencesto enable IonQ hardware noise simulation on Azure Quantum when using an IonQ QPU target (ionq.qpu.*); ignored for other Azure targets. - Add a QSVM application with a
QSVMclass that providestrain,test, andpredictmethods for easy implementation of Quantum Support Vector Machine training and data classification. The relevant notebooks in the classiq-library will be updated accordingly.