Expose Numpy simulator as Backend
See original GitHub issueWhat is the expected enhancement?
Qiskit includes a statevector simulator that uses Numpy. This is very nice because it means users can simulate circuits without installing Aer. However, I think the interface could be improved.
Currently the simulator is called using the Statevector
class:
from qiskit.quantum_info import Statevector
state = Statevector(circuit)
It would be useful to expand this functionality so it is used in the same way as other backends. That way it can be incorporated into code workflows that use backends.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Simulating COVID-19 using Python, NumPy & Matplotlib [in ...
In this in-depth Python tutorial using NumPy and Matplotlib, Caelan walks you through how to simulate the spread of a virus, using covid-19 ......
Read more >Simulation in NumPy — PsychRNN 1.0.0 documentation
Here we will demonstrate training a simple model in tensorflow, and then loading it and simulating it in NumPy. The Simulator can be...
Read more >Array programming with NumPy - Nature
NumPy is the primary array programming library for the Python language. It has an essential role in research analysis pipelines in fields as ......
Read more >NumPy User Guide
It is a Python library that provides a multidi- mensional array object, various derived objects (such as masked arrays and matrices), and an ......
Read more >Separating NumPy API from Implementation - DLR
In this paper, we introduce a unified NumPy backend that ... exposes NumPy applications as a stream of abstract array ... The simulation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Cryoris explained to me offline that the
BasicAer
backend exists and is exactly what I am asking for. So I’ll close this issue, though I will say that the existence of BasicAer should probably be mentioned more prominently in the documentation.Sorry about the delay re-opening, these issues had fallen off the front page of my notifications between them updating and me looking at my queue.
I’ve re-opened #7634, but left #7633 closed on the basis that “use
quantum_info
” is a duplicate of #7670, and the “support all matrices” is something that we can’t officially fulfill within theBackend
spec - ifBasicAer
is converted to usequantum_info
underneath, thenBasicAer.run()
will support all instructions with a matrix, but we can’t makeBasicAer
appear that way to things consuming theBackend
API (more detail in #7633).I’ll close this on the basis that #7670 is the direction we want to take to solve the underlying issue here, rather than making a new backend. If I’ve missed a further point in one of these issues, please let me know.