Releases: LordSaumya/quant-iron
Releases · LordSaumya/quant-iron
v2.0.0
This update adds support for a wider range of physical states and operations.
What's Changed
- Added the Pauli String and Pauli Time Evolution gates to the circuit-builder and
circuit!macro. - Added the
equals_without_phasemethod tostateto check phase-independent equality. - Added a method to normalise states.
- Added
Displaytrait implementations on all operators. - Added the
deep_clonemethod toparameter. - Added new constructors for Hartree-Fock, GHZ, and Bell states.
- Added a method to apply the normalised version of a Pauli String.
- Added methods to calculate the Fubini-Study distance and fidelity metrics to
state. - Increased test coverage for Pauli Strings.
- Added a method to get the length of Pauli Strings.
- Added a method to convert Pauli operators to Pauli Strings.
Bug Fixes
- Fixed Clippy lints
- Added all missing examples to the
cargo.tomlfile.
Potentially Breaking Changes
- Changed the
Operatortrait to require theDisplaytrait. - Changed operator addition methods on Pauli Strings to panic if an operator is added to a duplicate qubit.
Full Changelog: v1.4.2...v2.0.0
v1.4.2
v1.4.1
v1.4.0
What's Changed
- Added parameters
- Added parametric gates
- Fixed some doc errors
- Added an example for parametric circuits
Full Changelog: v1.3.0...v1.4.0
v1.3.0
What's Changed
- Added the
circuit!macro for easy circuit-building using a simple DSL. - Added crate- and mod-level documentation.
- Added the
Matchgateoperator, a two-qubit gate that simulates nearest-neighbour interactions in fermionic systems. - Added the
from_ry_phasemethod as an extension to theUnitary2operator, allowing for safe, infallible construction ofUnitary2operators using angle parameters.
Bug Fixes
- Fixed Clippy lints
- Fixed bug in
build_finalthat allowed for unchecked circuit building. - Fixed bug in
add_gatesthat allowed for unchecked gate addition to circuit.
Potentially Breaking Changes
- Removed
unwrap()from the implementation of unitary gates, propagating theNonUnitaryMatrixerror instead of panicking.
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's Changed
- Add support for converting circuits to OpenQASM 3.0 code
- Add examples in examples folder and explain in README.md by @andrewdavidmackenzie in #9
New Contributors
- @andrewdavidmackenzie made their first contribution in #9
Full Changelog: https://github.com/LordSaumya/quant-iron/commits/v1.1.0