Resolving given qubit circuit to specified basis.

Work in progress.

Added gates_resolved list to QubitCircuit class.