tigerjack
  • Member for 3 years, 3 months
  • Last seen more than a month ago
How to quickly calculate the custom U3 gate parameters $\theta, \phi$ and $\lambda$ for any unitary?
Accepted answer
5 votes

Python - Sympy It could be done in python using sympy. I am not really an expert and maybe there could be ways to optimize this, but the following works fine for me. Assuming you have the matrix $$\...

View answer
How to quickly calculate the custom U3 gate parameters $\theta, \phi$ and $\lambda$ for any unitary?
3 votes

Qiskit You can also do this directly from Qiskit using this piece of code from qiskit.quantum_info.synthesis import euler_angles_1q from scipy.linalg import sqrtm import numpy as np x_matrix = ...

View answer
Grover's algorithm with W-state
Accepted answer
3 votes

Okay I think I have a potential solution, but I don't know if it's plausible or theoretically correct. Standard Grover's algorithm Here is an example of the original Grover's algorithm with just three ...

View answer
Implementation of the oracle of Grover's algorithm on IBM Q using three qubits
0 votes

I implemented the same problem for multiple qubits using qiskit here. For the 3 qubit state you presented, you can use an oracle like the one here (I'm using quirk just to show the amplitudes in real ...

View answer