def test_represent_phasegate():
 circuit = (PhaseGate(0) * Qubit('01'))
 answer = represent(circuit, nqubits=2)
 assert (Matrix([0, I, 0, 0]) == answer)

def test_represent_phasegate ( ) : circuit = ( PhaseGate ( 0 ) * Qubit ( '01' ) ) answer = represent ( circuit , nqubits = 2 ) assert ( Matrix ( [ 0 , I , 0 , 0 ] ) == answer )
test the representation of the s gate .