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

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