pennylane
qiskit
- plugin of pennylane for qiskit -
pennylane-qiskit
numpy
- Use
H
,X
andCX
quantum gates - Convert the quantum gates to restricted set of quantum gates
- Set Initial state to
|00>
- set All angles to 0.0
- train using
gradient descent optimizer
from pennylane
- Change the measurement basis to
X@Y
(PauliX
measurement on qubit_0 andPauliY
on qubit_1)
- Change the measurement basis to
X@X
(PauliX
measurement on both qubit_0 and qubit_1)
- Create a quantum node collection for 2 nodes of the same circuit
- Alter the gradient function:
cost = |X@Y|-X@X + gradient(prob)