25 releases (1 stable)
Uses new Rust 2024
new 1.0.0 | May 1, 2025 |
---|---|
0.5.5 | Apr 28, 2025 |
0.4.8 | Apr 28, 2025 |
0.3.16 | Apr 17, 2025 |
0.1.2 | Apr 5, 2025 |
#236 in Development tools
1,979 downloads per month
47KB
648 lines
Intrico - A new intuitive era of Quantum Computing
High-performance Quantum Computing Rust library to simulate, and visualize quantum circuits with precision and power.
Installation
Run this in your terminal
cargo add intrico
OR add this to your Cargo.toml
:
[dependencies]
intrico = "0.4.7"
Quick Start
// Example: Evolving a single qubit state
use intrico::{Qubit, QuantumGate};
fn main() {
// Create a qubit in the |0⟩ state
let mut ket_0 = Qubit::zero();
println!("ket_0 = {:?}\t{:?}", ket_0, ket_0.state_vector());
// Apply a Hadamard gate to create a superposition
ket_0.apply(QuantumGate::H);
// This should print the |+⟩ state
println!("psi = {:?}", ket_0);
}
Features
Feature | Description |
---|---|
core |
Core Quantum definitions like qubits, quantum gates, gate operations, etc |
circuit |
Quantum Circuit functionality including visualisations |
simulator |
Quantum Simulation functionality |
Examples
Checkout the examples directory for all the examples. For convenience here's a list of some significant ones:
Example | Description |
---|---|
statevector-simulator |
A bell state simulation using statevector simulator |
License
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.
Dependencies
~455KB