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