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-1.0.0.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-1.0.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qnas-1.0.0.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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 53d9e8e6266a5320d2da8afc45e2ada81f281c3ee0365c4d261b1251f103f394
MD5 829654c4726851738f98923bc45679c6
BLAKE2b-256 eba2eb89eacf357c4bd9505099281727c73fcbb1f0dc1468a102fcbeadb5828d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qnas-1.0.0-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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79baabfd03047b29e4f0212ca279d0abc2361ed5462b5a8cbcef4b3c663195a3
MD5 e961e349edd295194fb362cd2c99a63e
BLAKE2b-256 75a448dfce5b12c1562114bc84957029ee6c15ff3daf6f1daa25e1b9b7811f78

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