PyQrack emulator
Warning
This page is under construction. The content may be incomplete or incorrect. Submit an issue on GitHub if you need help or want to contribute.
Running simulations
The program can be executed via a simulator backend, e.g. PyQrack, you can install it for M-series Macs and other machines via:
pip install pyqrack
Warning
If you are using a Mac with an Intel CPU you will need to instead install the following:
pip install pyqrack-cpu
Alternatively, if you have access to a GPU with CUDA support you can leverage that via:
pip install pyqrack-cuda
from bloqade import qasm2
from bloqade.pyqrack import PyQrack
@qasm2.extended
def main():
return qft(qasm2.qreg(3), 3)
device = PyQrack()
qreg = device.run(main)
print(qreg)