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)

The 'qubitData.csv' should look like this:

Qubit;Relaxation;Dephasing;Thermal;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.7.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.7-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qnas-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 df644026c62735a7f3bdd59603d9944fc7682c93f2c767b6c5f5e7f706d61d77
MD5 56dd4f709c12fd0bc5867e67c36db633
BLAKE2b-256 341ec5321df0d8c4fcc29c79ba499a218b4b0252ba5f3a5bfcded5653ec17330

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qnas-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 23.1 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a012866163c37e879b1d77eec586332500fedaff667f51abd5eea316ea828104
MD5 a2137d8d77e928bf55440eb7a4e3fa65
BLAKE2b-256 0b519d92390f6f278b088f9be9a122a9abbc28cb9403d54fc5e6ed9fe71cf865

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