New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 0.2.3 #21
Merged
Merged
Release 0.2.3 #21
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bump version to 0.2.2
A product state struct can now be converted to a superposition struct simply by calling it's method `to_super_position()`. This allows for easier manipulation in constructing custom functions. For example, if a product state is altered by flipping a binary digit, then the custom function needs to return a superposition. This now makes it far easier to do. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Adds a method to `ProductState` that inverts a qubit given the position, where the 0 position is the left most qubit and increments from left to right. This allows for easier manipulations of ProductStates for custom functions. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Added the new features to the CHANGELOG.md. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
It used to have the 'To' label, but now replaced with the more natural 'X', for the Not gate. The 'Swap' gate was also shortened to 'Sw'. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
For multi-controlled gates which have vertical wires passing over horizontal, instead of giving the illusion of them passing under, they are now 'connected'. This is less harsh to the eyes for big circuit diagrams. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
This is more in keeping with Rust standard library. Will have to change other functions, however that will be a breaking change and not quite ready to do that yet. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Feat states
Bumped Rust version from 1.72.1 to 1.73.0. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Adds an external test. This test is an algorithm for confirming a row of 3x3 sudoku. For the testing practicality, it is a 10 qubit circuit with two custom functions and several hadamard gates. This should also compile and run quickly enough, in addition to having enough complexity, to be regarded as a good practical test of quantr. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Added many examples to the methods documentation in Printer and Circuit structs. Chose to deprecate flush as there's no way to use it due to Rust lifetimes. For now, this will be removed next major update. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Added the complete grovers code in the quantr-book into the examples folder. Plan is to add more examples later. Edited the changelog to reflect this change too. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Docs examples
Added the addition of S and T gates to the changelog.md. Signed-off-by: Andrew Barlow <a.barlow.dev@gmail.com>
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See CHANGELOG.md for details.