# Useful additional packages 
import matplotlib.pyplot as plt
%matplotlib inline
import numpy as np

from qiskit import QuantumCircuit, execute, Aer
from qiskit.visualization import plot_histogram


ckt=QuantumCircuit(1)
ckt.x(0)
ckt.y(0)
ckt.z(0)

ckt.draw(output='mpl')

sim_uni = Aer.get_backend('unitary_simulator')
job_uni = execute(ckt, sim_uni, shots=1000)
res_uni = job_uni.result()
uni_matrix = res_uni.get_unitary(ckt)
print (uni_matrix)