| Crates.io | f2q |
| lib.rs | f2q |
| version | 0.3.0 |
| created_at | 2023-10-21 21:27:21.760413+00 |
| updated_at | 2023-10-29 22:54:46.286294+00 |
| description | Fermion to qubit mappings |
| homepage | https://github.com/Quantum-for-Life/f2q |
| repository | https://github.com/Quantum-for-Life/f2q.git |
| max_upload_size | |
| id | 1010259 |
| size | 160,617 |
Fermion-to-qubit mappings. High-octane representation of Pauli Hamiltonians with up to 64 qubits.
This is a software library and a command line tool to parse and convert quantum chemistry Hamiltonians into a form suitable for quantum hardware based on qubit gates.
Make sure you have the Rust compiler installed, in version at least 1.70: 🦀
rustc --version
If not, update Rust:
rustup update
or check out the official Rust website on how to get started.
If you only want to use the accompanying command line tool: f2q, install the
executable like this:
cargo install f2q
f2q --help
To include the software library into you Rust project, use the package available on crates.io:
cargo add f2q
The full documentation is available online at docs.rs. 📚
To run the library's test suite, make sure you have the nightly Rust toolchain installed:
rustup install nightly
Clone the f2q repository to your local system:
git clone https://github.com/Quantum-for-Life/f2q.git
cd f2q
and set nightly Rust as the default toolchain for this repo:
rustup override set nightly
Now, you can run the tests: ⚙️🪛
cargo test
All contributions are welcome. 💐
Before submitting patches, please reformat your code as specified in
rustfmt.toml by running:
cargo clippy --fix
cargo fmt
or if you have just installed:
just lint