6.4.0
Changelog
dimod 0.12.3 ➞ 0.12.6
New Features
-
Improve the performance of the
ConstrainedQuadraticModel.add_variables()method. -
Allow discrete constraints added by
ConstrainedQuadraticModel.add_discrete()to have zero or one variables. -
Add
dimod::ConstrainedQuadraticModel::constraints()method that returns a view of the constraints that is easily iterated over. -
Improve the performance of fixing and removing variables from constrained quadratic model expressions.
-
Implement the
Expression::fix_variable()C++ method. Previously it would throwstd::logic_error("not implemented - fix_variable"). -
Improve the performance of
ConstrainedQuadraticModel.fix_variable()andConstrainedQuadraticModel.fix_variables(). -
Add
inplacekeyword argument toConstrainedQuadraticModel.fix_variables(). -
Add
dimod::Constraint::clear()C++ method.
Upgrade Notes
-
Remove the undocumented
cyConstrainedQuadraticModel.add_variable()method. -
Add an overload to the C++
QuadraticModel::remove_variable()method. This is binary compatible, but it makes&remove_variableambiguous. -
The
ConstrainedQuadraticModel.fix_variables()function now returns aConstrainedQuadraticModelrather than an empty dictionary. -
Change
lp.load()andlp.loads()to raise aValueErrorrrather than aRuntimeErrorwhen given an invalid file format. -
Make
beta_range,num_reads, andnum_sweepskeyword-only arguments forSimulatedAnnealingSampler.sample(). -
Make
num_readsandseedkeyword-only arguments forRandomSampler.sample(). -
Make
initial_states,initial_states_generator,num_readsandseedkeyword-only arguments forIdentitySampler.sample(). -
Make
rtolandatolkeyword-only arguments forExactCQMSolver.sample_cqm().
Bug Fixes
-
Fix
ConstrainedQuadraticModel.add_variable()to raise aValueErrorwhen given an inconsistent variable type. Previously it incorrectly raised aTypeError. -
Fix
ConstrainedQuadraticModel.add_variable()to raise aValueErrorwhen given invalid variable bounds. -
Fix
lp.load()andlp.loads()functions to correctly handle maximization objectives. See #1321.
dwave-cloud-client 0.10.4 ➞ 0.10.5
New Features
-
Add
strict_modesupport toVersionedAPISession. Strict mode is now the default, implying API requests will fail if type/version is expected and the response doesn't include it. -
Add
version_strict_modeconfig option toDWaveAPIClient. It corresponds to underlying session's (VersionedAPISession)strict_mode. -
Add
VersionedAPISession, arequests.Sessionsubclass (more precisely, further specializedLoggingSession) that enforces conformance of API response version with supported version range(s). -
Add
acceptsdecorator for declaring accepted media type and response format version (range) ondwave.cloud.api.Resourcemethods. -
Simplify
dwave.cloud.api.resource.acceptsinterface (require onlymedia_typeandversion), but retain flexibility (pass all keyword arguments toVersionedAPISession.set_accept). -
Support
strict_modecontrol of API response type validation via@acceptsinterface.
Upgrade Notes
-
Response type version is now always required (regardless of
strict_mode) if type is expected and received, and version is expected. -
Enforce D-Wave API response format version on all
cloud.apiresources.
Bug Fixes
- Fix
dwave.cloud.api.resources.acceptsto allow for partial decoration ofResourcemethods. See #544.
dwave-inspector 0.4.1 ➞ 0.4.2
Bug Fixes
-
Use
vcrpy-compatible version ofurllib3(<2) for testing in dwavesystems/dwave-inspector#157 -
Migrate to codecov's orb from the deprecated uploader in dwavesystems/dwave-inspector#158
-
Update examples to use newer QPU in dwavesystems/dwave-inspector#155
dwave-networkx 0.8.13 ➞ 0.8.14
New Features
-
Improved Documentation. See dwavesystems/dwave-networkx#226, dwavesystems/dwave-networkx#227, dwavesystems/dwave-networkx#229.
-
Fix misc deprecation warnings. See dwavesystems/dwave-networkx#228.
-
Support NetworkX 3.x. See dwavesystems/dwave-networkx#230.
Upgrade Notes
- Added NumPy as an explicit dependency. See dwavesystems/dwave-networkx#230.
dwave-system 1.18.0 ➞ 1.19.0
New Features
- Improved documentation. See dwavesystems/dwave-system#491.
Fixes
- Add missing
dwave.embedding.zephyrnamespace. See dwavesystems/dwave-system#490.
dwave-gate 0.2.0 ➞ 0.2.1
New Features
-
Measurement samples can be returned as bitstrings instead of integers in nested lists.
-
A density matrix representation of the state can be accessed via the
Circuit.density_matrix
property, for both pure and mixed states (with the former being lazily calculated from the state
vector).
Upgrade Notes
-
Adds support for multi-qubit sampling in measurements.
Measurement.sample()and
Measurement.expval()are updated to accept a sequence of qubit indices to sample, sampling
all measured qubits if none are given.circuit = Circuit(2, 2) with circuit.context as (q, c): ops.X(q[0]) m = ops.Measurement(q) | c simulate(circuit) m.sample(num_samples=3, as_bitstring=True) # ['10', '10', '10']
-
The state is now stored in the
Circuitobject (same as the bits/measurement results) instead
of being returned by thesimulate()function. It can now be accessed via the
Circuit.stateproperty.
Package versions
dimod==0.12.6
dwave-cloud-client==0.10.5
dwave-greedy==0.3.0
dwave-hybrid==0.6.10
dwave-inspector==0.4.2
dwave-neal==0.6.0
dwave-networkx==0.8.14
dwave-preprocessing==0.5.4
dwave-samplers==1.0.0
dwave-system==1.19.0
dwave-tabu==0.5.0
dwavebinarycsp==0.2.0
minorminer==0.2.11
penaltymodel==1.0.2
pyqubo==1.4.0
# extras: all
dwave-gate==0.2.1