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 --versionIf not, update Rust:
rustup updateor 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 --helpTo include the software library into you Rust project, use the package available on crates.io:
cargo add f2qThe 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 nightlyClone the f2q repository to your local system:
git clone https://github.com/Quantum-for-Life/f2q.git
cd f2qand set nightly Rust as the default toolchain for this repo:
rustup override set nightlyNow, 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 fmtor if you have just installed:
just lint