Release Note
Improvements
- Accelerated circuit executions, providing 2-4 times speed-up compared to the previous version. Specifically, over 10 times speed-up for specific quantum neural network models.
New Features
paddle_quantum.gate
:Gate
is now a child class ofpaddle_quantum.channel.Channel
, and hence inherits most functionalities from thechannel
module, such as its Choi representationGate.choi_repr
.- New module
matrix
: provides user access to the matrices of gates in Paddle Quantum. - New gate
ParamOracle
: provides user access to customized parameterized gates.
paddle_quantum.qinfo
:- New function
pauli_str_convertor
: Concatenate the input observable with coefficient 1.
- New function
paddle_quantum.loss.ExpecVal
:- Now
ExpecVal.forward()
can return the decomposed expectation value by settingdecompose=True
.
- Now
paddle_quantum.state.State
:- Now
State.measure()
can record the result in each shot by settingrecord=True
.
- Now
New Applications
New applications have been added in the Quantum Application Model Library (QAML) as follows.
- Credit Risk Analysis
- Deuteron Binding Energy
- Handwritten Digits Generation
- Intent Classification
- Power Flow Optimization
- Random Number Generation
New Tutorials
More tutorials are introduced in Paddle Quantum 2.4.0, to offer suggested usages in common scenarios of quantum research. These tutorials are listed as follows:
- Construction and Manipulation of Circuit
- Customized Gate and Channel
- Generation of Hamiltonian
- Common Algebraic Functions
- Usage of State
- Construction and Training of QNNs
Bug Fixes
- Fix some typos and mistakes in the tutorials and the API docs.
- Strengthen the overall stability of Paddle Quantum.
Dependencies
paddlenlp
: newly added.