Paddle Quantum 2.2.0
Release Note
Breaking Change
We have made an incompatible upgrade to the code architecture, and the new version's structure and usage can be found in our tutorials, API documentation, and the source code.
New Features
- We now support connecting to a real quantum computer via QuLeaf, using
paddle_quantum.set_backend('quleaf')
to select QuLeaf as the backend. - We now support using
set_backend()
to switch to different backends. - We now support using the state fidelity and trace distance as the loss function to optimize.
- We now support using an oracle gate in a quantum circuit.
- Add the
VAns
feature, which can build shallower ansatzes by automatically inserting and removing gates during the optimization. - Add the UCCSD ansatz, which is frequently used in quantum chemistry.
- Add the
OneBodyDensityMatrix
class for measureing the one-body density matrix from a quantum state.
New Tutorials
QNN Research
- Add the tutorial VAns - Variable Ansatz, which presents a variable structure algorithm to build shallower ansatzes by automatically inserting and removing gates during the optimization.
- Temporarily remove the tutorial Calculating Gradient Using Quantum Circuit. It will be reworked and released after the relevant features have been refactored.
Introduction
- Improve the tutorial Quantum Chemistry in Paddle Quantum's qchem by adding the introduction to the new features.
- Temporarily remove the tutorial Frequently Used Functions in Paddle Quantum, which will be reworked and released soon.
Dependencies
qcompute
: newly added.interval
: removed.scikit-learn
: newly added.opencv-python
: newly added.