:orphan:
-
A
DeviceCapabilities
data class is defined to contain all capabilities of the device's execution interface (i.e. its implementation ofDevice.execute
). A TOML file can be used to define the capabilities of a device, and it can be loaded into aDeviceCapabilities
object. (#6407)>>> from pennylane.devices.capabilities import load_toml_file, parse_toml_document, DeviceCapabilities >>> document = load_toml_file("my_device.toml") >>> capabilities = parse_toml_document(document) >>> isinstance(capabilities, DeviceCapabilities) True
-
Added
qml.devices.qubit_mixed
module for mixed-state qubit device support (#6379). This module introduces anapply_operation
helper function that features:-
Two density matrix contraction methods using
einsum
andtensordot
-
Optimized handling of special cases including: Diagonal operators, Identity operators, CX (controlled-X), Multi-controlled X gates, Grover operators
-
-
Added submodule 'initialize_state' featuring a
create_initial_state
function for initializing a density matrix fromqml.StatePrep
operations orqml.QubitDensityMatrix
operations. (#6503)
- Added support for the
wire_options
dictionary to customize wire line formatting inqml.draw_mpl
circuit visualizations, allowing global and per-wire customization with options likecolor
,linestyle
, andlinewidth
. (#6486)
jax.vmap
can be captured withqml.capture.make_plxpr
and is compatible with quantum circuits. (#6349)
-
qml.BasisRotation
template is now JIT compatible. (#6019) -
The Jaxpr primitives for
for_loop
,while_loop
andcond
now store slices instead of numbers of args. (#6521) -
Expand
ExecutionConfig.gradient_method
to storeTransformDispatcher
type. (#6455)
- The
qml.shadows.shadow_expval
transform has been removed. Instead, please use theqml.shadow_expval
measurement process. (#6530) (#6561)
- Add a warning message to Gradients and training documentation about ComplexWarnings (#6543)
- Fixed
Identity.__repr__
to return correct wires list. (#6506)
This release contains contributions from (in alphabetical order):
Shiwen An Astral Cai, Yushao Chen, Pietropaolo Frisoni, Andrija Paurevic, Justin Pickering