0.9.1
Interface Changes¶
- Deprecate the
classiq_interface
. To install Classiq's Python SDK, use only:pip install -U classiq
- Migrate the
classiq_interface
namespace toclassiq.interface
. Update your code to useInstead of:from classiq.interface import *
For example, with the updated namespace:from classiq_interface import *
And notfrom classiq.interface.generator.state_preparation import ( PMF, Metrics, NonNegativeFloatRange, )
from classiq_interface.generator.state_preparation import
. - Rename the "method" parameter to "uncomputation_method".
- Return an OptimizationResult object from CombinatorialOptimization.solve().
- Modify the input field atoms in the class Molecule to be a list of atoms, each containing the string of the atom's symbol and a tuple of its (x,y,z) location; for example atoms=[('H', (0.0, 0.0, 0.0)), ('H', (0.0, 0.0, 0.735))]. See Chemistry.
- Add an option to provide a custom basis gate list to the model, which is used to compose the functions. See the circuit synthesis documentation: Synthesis Preferences (Hardware Settings).
New Features¶
- Allow entering the optimization problem with a custom lower bound, including a negative integer number.
- Support the cirq format as input in the analyzer.
- Add a documentation page about the Modulo operation, explaining the operation and how to use it. It is located under User Guide / Builtin functions / Arithmetic.
- Determine the name of a specific instance of a function, to distinguish between multiple calls to the same function.