Constant gate_z

← Back to Module quantum



Module quantum → gate_z

Description

The matrix representation of \(Z\) gate

const gate_z = multiply(gate_i,matrix([[1,0],[0,-1]]))