Skip to main content

Quantastica quantum programming tools

Project description

Qubit Toaster backend for Qiskit

Allows running Qiskit code on Qubit Toaster - a high performance quantum circuit simulator.

More goodies at


pip install quantastica-qiskit-toaster


Import ToasterBackend into your Qiskit code:

from quantastica.qiskit_toaster import ToasterBackend

Replace Aer.get_backend with ToasterBackend.get_backend.


from qiskit import QuantumRegister, ClassicalRegister
from qiskit import QuantumCircuit, execute, Aer
from quantastica.qiskit_toaster import ToasterBackend

qc = QuantumCircuit()

q = QuantumRegister(2, "q")
c = ClassicalRegister(2, "c")


qc.h(q[0])[0], q[1])

qc.measure(q[0], c[0])
qc.measure(q[1], c[1])

# Instead:
#backend = Aer.get_backend("qasm_simulator")

# Use:
backend = ToasterBackend.get_backend("qasm_simulator")

# OR:
# backend = ToasterBackend.get_backend("statevector_simulator")

job = execute(qc, backend=backend)
job_result = job.result()




ToasterBackend.get_backend(backend_name = None)


backend_name can be:

  • qasm_simulator only counts will be returned

  • statevector_simulator both counts and state vector will be returned

If backend name is not provided then it will act as qasm_simulator

That's it. Enjoy! :)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantastica-qiskit-toaster-0.9.14.tar.gz (9.4 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page