Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
A function which can quickly simulate a QuantumCircuit. It can also take an input string to modify the input. For example to test a 1-bit adder:
`from qiskit import QuantumCircuit, quick_simulate
#make adder
qc = QuantumCircuit(4,2)
qc.cx(0,2)
qc.cx(1,2)
qc.ccx(0,1,3)
qc.barrier()
qc.measure(2,0)
qc.measure(3,1)
#get results
quick_simulate(qc) #returns {'00':1024}
quick_simulate(qc, x="10") # returns {'01': 1024}
etc.`
Details and comments
I wasn't exactly sure where to place the import statement. At the moment it can be imported as 'from qiskit import simulate' but if it would be better placed in the providers directory then line 82 in qiskit/init.py can be moved to qiskit/providers/init.py
I also just copied and pasted the license agreement without signing anything anywhere, it that OK?