proxy
¤
about proxy
Task and some other usefull functions
Functions:
| Name | Description |
|---|---|
math_demo |
Look at these formulas: |
math_demo(x, y)
¤
Look at these formulas:
The U3 gate is a single-qubit gate with the following matrix representation:
\[
U3(\theta, \phi, \lambda) = \begin{bmatrix}
\cos(\theta/2) & -e^{i\lambda} \sin(\theta/2) \\
e^{i\phi} \sin(\theta/2) & e^{i(\phi + \lambda)} \cos(\theta/2)
\end{bmatrix}
\]
inline: \(P(A_i|B)=\frac{P(B|A_i)P(A_i)}{\sum_j P(B|A_j)P(A_j)}\)
That is, remove \(e^{i\alpha}\) from \(U = e^{i\alpha} R_z(\phi) R_y(\theta) R_z(\lambda)\) and return \(R_z(\phi) R_y(\theta) R_z(\lambda)\).
\[
U = e^{i \cdot p} U3(\theta, \phi, \lambda)
\]
\(P(A_i|B)=\frac{P(B|A_i)P(A_i)}{\sum_j P(B|A_j)P(A_j)}\)
Source code in quark/proxy.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |