Problem 1. Consider the unary gates (2 x 2 unitary matrices)

N=(0110)H=12(111−1)

V=(100eiπ2)W=(100eiπ4)

and the normalized state

|ψ⟩=12(11)

calculate U|ψ⟩ where U=N⋅H⋅V⋅W and also calculate the epectation value ⟨ψ|U|ψ⟩.

Note that U is the Pauli-X gate, H the Hadamard gate, V phase gate, and W π/8 gate.

2.5 ms

Solution 1

8.0 μs
7.8 s
174 ms
1.8 s
72.4 ms
15.5 ms

U=[22−2e3π𝑖42222e3π𝑖42]

296 ms
7.6 ms

U|ψ⟩=[12−e3π𝑖42e3π𝑖42+12]

23.8 ms

The expectation ⟨ψ|U|ψ⟩ is then:

6.1 μs
110 ms

𝙴=22

16.0 ms