New answers tagged

2

In your calculations you are getting the state $$ |\psi \rangle = \frac{1}{\sqrt{2}}\begin{pmatrix} i \\ 1 \end{pmatrix} $$ instead of what you are expecting $$ |\phi \rangle = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ -i \end{pmatrix}. $$ Well it turns out that in quantum theory these two states are considered the same! This is because they only differ up to a ...


1

Up until very recently, braket had no such feature. However, as of v1.7.0 (2021-06-25), unitary representations of circuits can now be calculated using the calculate_unitary function. Using the circuit you provided as an example: In [1]: from braket.circuits import Circuit ...: from braket.circuits.gate import Gate ...: from braket.circuits.instruction ...


Top 50 recent answers are included