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, QuantumOperation
- QuantumState: This class allows you to create and manage quantum states. It provides various methods to initialize, transform, and measure quantum states.
- QuantumOperatio: 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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qirt-1.0.0.tar.gz
.
File metadata
- Download URL: qirt-1.0.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27221e9ba2f1738c6db061a3af32e648904137f37c5e0fef82f18e2765489c73 |
|
MD5 | af4778a8f38f18e06739482389418995 |
|
BLAKE2b-256 | 26949f03b129cfb4e5614d0ce717599a2f039a6d4ec23617dac82aac1b30322a |
File details
Details for the file QIRT-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: QIRT-1.0.0-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e847928c167e0f03df404afb584c920a627d41b1f9edaeaa2dcd441a2ff318f |
|
MD5 | f269e98eeda4d3833060fc64e89bce18 |
|
BLAKE2b-256 | bb4c327e4dd1fa3feb340dca221aafea861e256e2ebfcd1b20896f3b06fb48b6 |