Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pietrozanotta/quriust
Library to simulate a gate based quantum computer and run algorithms. Only for quriust people
https://github.com/pietrozanotta/quriust
quantum-algorithms quantum-computing
Last synced: about 18 hours ago
JSON representation
Library to simulate a gate based quantum computer and run algorithms. Only for quriust people
- Host: GitHub
- URL: https://github.com/pietrozanotta/quriust
- Owner: PietroZanotta
- License: mit
- Created: 2023-12-17T21:29:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-10T09:38:37.000Z (8 months ago)
- Last Synced: 2024-12-17T04:54:11.652Z (9 days ago)
- Topics: quantum-algorithms, quantum-computing
- Language: Rust
- Homepage: https://docs.rs/quriust/latest/quriust/index.html
- Size: 50.8 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quriust
Just a quantum computing simulator in Rust for curious ones, built to run and learn some simple algorithms.## Installation
Add this library as a dependency in your `Cargo.toml`:
```toml
[dependencies]
quriust = "0.2.0"
```## Usage
Here's a basic example demonstrating how to use this library:```rust
use quriust::registers::{ClassicalRegister, QuantumRegister};// Create a new quantum register
let classical_register: ClassicalRegister = ClassicalRegister::from_value(4, 1);
let mut register = QuantumRegister::new(&classical_register);
// Apply a Hadamard gate to the first qubit
register.h(1);
// Measure the register
let measurement = register.measure();
// Print the measurement outcome
println!("Measurement outcome: {:?}", measurement);
```## Documentation
For detailed usage instructions and API documentation, see the [documentation](https://docs.rs/quriust/latest/quriust/index.html).## Contributing
Quriust welcomes contributions from the community to enhance its features, improve performance, and fix bugs. If you're interested in contributing, feel free to submit pull requests with your improvements.## License
This library is licensed under the MIT License. See the [LICENSE](https://github.com/ScipioneParmigiano/quriust/blob/main/LICENSE) file for details.