Skip to main content

QnAS package

Project description

Welcome to QnAS - an open source program to simulate noisy quantum algorithms!

Installation guide: Go to PyPI and find QnAS, there you can find the installation command! Or you can find it here:

pip install qnas

MIT License: Free to use!

To see source code, go to: https://github.com/isakwi/Kandidatarbete/tree/main/qnas

To get started with QnAS, import QnAS to your program and call the help function:

import qnas

qnas.help()

To get even more help, here comes an example of how you can use qnas.solve() to solve a very simple system of 3 qubits given that you have a qubit parameter file called 'qubitData.csv':

import qnas
import qiskit
from numpy import pi

circuit = qiskit.QuantumCircuit(3)
circuit.rx(pi,0)
circuit.rx(pi,1)
circuit.rx(pi,2)

finalStates = qnas.solve(Qbfile='qubitData.csv', circuit=circuit)

Here's an example of how the 'qubitdata.csv' should look like:

Qubit;Relaxation(MHz);Dephasing(MHz);Thermal(MHz);Anharmonicity(MHz);Levels
01;1.1;1.2;0.00;-229;3
02;1.3;1.0;0.00;-225;3
03;1.2;1.4;0.00;-226;3

To add more qubits, just add more rows to the csv file!

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

qnas-0.0.9.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qnas-0.0.9-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file qnas-0.0.9.tar.gz.

File metadata

  • Download URL: qnas-0.0.9.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for qnas-0.0.9.tar.gz
Algorithm Hash digest
SHA256 99bb20ae576ec5c8a213150eb9b726c97a64bc0512929251cba4e17815ba7ed0
MD5 7d2888047f3473824f5bde1ba89ba133
BLAKE2b-256 888be1bf048a8cb188e92e02d8433b4a8b00880d0c336afe8ecc018697f39a64

See more details on using hashes here.

File details

Details for the file qnas-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: qnas-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for qnas-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 457e7dd8fab095e06f2462d3d0520c1c05cbeaa241e274346cec2528b90cba26
MD5 816431ad4e5bb496ea6a8410d3feee41
BLAKE2b-256 aa46682bcad51ff2d3a783ace9bb077d7485e9ef15955c768bbc92d552fba1f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page