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