Comments (3)
Talking this over with @smite and @cgogolin, this can be likely be fixed by a JIT-style circuit construction, i.e., having a separate QNode.construct()
method. This is called the first time either of __call__()
or gradient()
is called.
I'll implement this approach, and then close this issue if it works.
from pennylane.
@josh146 Just as a question: why did this issue not occur with the qubit circuits/gradients?
from pennylane.
From my understanding, this appears to be resolved in 4a69b29. If there are particular bugs that come up with this implementation, we can reopen and make new issue
from pennylane.
Related Issues (20)
- [BUG] QAOA layers incorrectly forbid `Sum` observables
- Add function to convert PennyLane objects to OpenFermion objects HOT 2
- [BUG] Adjoint method does not respect global wires return types
- [BUG] TorchLayer does not work correctly with broadcasting and `tuple` returns HOT 1
- Propagate the gradient to part of an array only HOT 2
- Prevent writing to a specific file when creating the Hamiltonian HOT 12
- [BUG] Some templates not properly differentiated with parameter shift on the legacy device HOT 1
- Update documentation to remove pennylane.optimize HOT 3
- [BUG] `qml.eigvals` sometimes fails when using `LinearCombination` HOT 1
- [BUG] `qml.Adjoint` and `qml.Pow` do not commute when exponent is fractional HOT 1
- [BUG] JIT + Global measurements without device wires does not work
- [BUG] `StatePrep` and its decomposition differ in derivative
- Support broadcasting/batching of `GlobalPhase`
- [BUG] `qml.pauli_decompose` fails when being jit-ted HOT 1
- [BUG] Allow natural extension of `QubitUnitary` to 1x1 matrices
- [BUG] Documentation inconsistently states that GlobalPhase acts on all wires
- Align definition of GlobalPhase convention HOT 4
- [BUG] Tensor product alters operands
- [BUG] Second-oder derivatives fail with shots enabled for product of input variables HOT 1
- [BUG] `split_non_commuting` is not differentiable with trainable observables
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 pennylane.