def test_represent_zgate():
 circuit = (ZGate(0) * Qubit('00'))
 answer = represent(circuit, nqubits=2)
 assert (Matrix([1, 0, 0, 0]) == answer)

def test_represent_zgate ( ) : circuit = ( ZGate ( 0 ) * Qubit ( '00' ) ) answer = represent ( circuit , nqubits = 2 ) assert ( Matrix ( [ 1 , 0 , 0 , 0 ] ) == answer )
test the representation of the z gate .