Skip to main content

A quantum information research toolkit

Project description

QIRT - Quantum Information Research Toolkit (WIP)

A quantum information research toolkit based on Qiskit. This project is currently a Work in Progress (WIP) and is not yet complete. Features and documentation may be incomplete.

Introduction

The Quantum Information Research Toolkit (QIRT) is designed to facilitate research and development in quantum information science using the Qiskit framework. This toolkit provides essential classes and functions to create and manipulate quantum states and operations effectively.

Quick start

QIRT can be installed using pip:

pip install QIRT

Usage

Importing the Toolkit

To start using the Quantum Information Research Toolkit, import the necessary modules as shown below:

from QIRT import QuantumState, QuantumCircuit
  • QuantumState: This class allows you to create and manage quantum states. It provides various methods to initialize, transform, and measure quantum states.
  • QuantumCircuit: This class provides a set of operations that can be applied to quantum states. It includes methods for unitary operations, measurements, and other quantum operations.

Creating a Quantum State

To create a quantum state, you can use the from_label method provided by the QuantumState class. Below is an example of how to create a quantum state labeled '00':

# Create a quantum state labeled '00'
init_state = QuantumState.from_label('00')

Visualizing the Quantum State

Once you have created a quantum state, you can visualize it using the draw method. Here is how you can visualize the quantum state init_state:

# Draw the quantum state
init_state.draw()

Creating a Quantum Operation

Configuration

The configuration file for QIRT is located in the user's home directory under ~/.QIRT/config.ini. This file allows you to customize various settings for the toolkit.

The default configuration file is as follows:

; This section sets up the notation for the StateVector (affects the visualization result and the constructor function from_label()).
; The default notation uses |j> to represent |-i>. 
; You can change the notation to another character if necessary. (only accepts single characters.)
[ket]
z0 = 0
z1 = 1
x0 = +
x1 = -
y0 = i
y1 = j

Requirement

Python >= 3.10
qiskit[visualization] >= 1.1.0 IPython >= 8.24.0

License

This QIRT project is open source under the MIT license. However, the extensions that are installed separately are not part of the QIRT project. They all have their own licenses!

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

qirt-1.1.0.tar.gz (55.5 kB view details)

Uploaded Source

Built Distribution

QIRT-1.1.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file qirt-1.1.0.tar.gz.

File metadata

  • Download URL: qirt-1.1.0.tar.gz
  • Upload date:
  • Size: 55.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for qirt-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a32bef7ff190a9a8e76c970007c7b53925ee9af1098bfc24811db1f01f217880
MD5 0686e08557ae15f8dd4893f6006bd14f
BLAKE2b-256 77c5f6b98d8e7765cf24240d37c3b5bb9fbd99b22df8c2912a02c85976ce2cb4

See more details on using hashes here.

File details

Details for the file QIRT-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: QIRT-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for QIRT-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c326c8d929b88cd6634b767abd62c69f5fc1dcc577efd0352c3bf13e4a6a3d74
MD5 79aeaede805d43bf57d5413f205e4a4e
BLAKE2b-256 f833fa0d7ab961fa501e7af10e54493a3f7174e3cc3694e35353c345f833c5fb

See more details on using hashes here.

Supported by

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