added input read
Merge https://github.com/networks/QuantumCircuits