Comments (2)
While the code allows to use AerPauliExpectation, it currently gives wrong results due to a bug in the expectation values if coefficients in the state function are involved -- as is the case for gradients.
from qiskit-machine-learning.
With Qiskit/qiskit#6497 merged, this issue is resolved.
The AerPauliExpectation
now yields the correct values, see this plot which shows the absolute difference between gradients calculated exactly (using the matrix expectation) again Pauli and AerPauli:
For the QFI, the errors look very similar.
Here's a small runtime comparison for gradients (not including matrix expectation because that scales way too bad and reaches the 40s mark already for 12 qubits):
from qiskit-machine-learning.
Related Issues (20)
- Add Python 3.12 support
- Update links to qiskit.org/documentation HOT 1
- Clarification on Method Used for PSD Projection in FidelityQuantumKernel HOT 5
- VQC inside session HOT 3
- Improve documentation on reshaping SamplerQNN output via interpret Callable
- How to merge custom quantum circuit with quantum machine learning model circuit? HOT 2
- Machine Learning Unit Tests Badge Shows Fail
- TorchConnector returns two sets of weights in the state dict instead of one
- ISA circuit support for latest Runtime HOT 4
- Enhancement of PyTorch connector HOT 2
- Extend unit test coverage with `Hypothesis` in numerical tests
- Add `jit` compilation to the Torch connector with `thunder`
- Revamp `README.md` with structured information HOT 4
- Set up a security policy (@maintainers)
- Multi-class Classification Problem Using QSVC HOT 3
- Error when testing samples with labels other than {0, 1} in the MNIST dataset. HOT 6
- Revert CI environment to latest PyTorch once UTF bug is fixed
- Binary classification problem using NeuralNetworkClassifier and cross entropy loss HOT 1
- MacOS in CI - macos-latest is now ARM HOT 2
- Link Qiskit 1.0 migration instructions in Readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qiskit-machine-learning.