Comments (4)
The positive phase seems more intuitive to me as well 👍
from pennylane.
from pennylane.
The e^-ix
is in agreement with how we defined Evolution
. So GlobalPhase(phi, wires)
is equivalent to qml.evolve(qml.I(wires), phi)
.
from pennylane.
The
e^-ix
is in agreement with how we definedEvolution
. SoGlobalPhase(phi, wires)
is equivalent toqml.evolve(qml.I(wires), phi)
.
Sure but isn't that rather arbitrary? evolve is quite a high-level concept, and GlobalPhase is a basic gate. Not sure I follow why the latter would have to follow the same action for similar arguments as the former.
from pennylane.
Related Issues (20)
- [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
- [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
- [BUG] hadamard gradient does not work with wires-broadcasted measurements
- [BUG] Precision error in two-qubit decomposition of qml.QubitUnitary HOT 10
- Broadcast Expand Prevents Torchlayer from detecting Inputs Argument HOT 3
- Add an `is_pure` method in `qml.math.quantum` for quick purity checks on density matrices HOT 3
- [BUG] split_non_commuting not used when running qml.var HOT 3
- [BUG] Incorrect answers from qml.var due to sum hashing
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.