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.
This PR is a set of patches related to #496, which was just merged in.
Substantive changes:
ForwardSimulator
has been updated so that the 'auto' keyword argument now defaults to theMapForwardSimulator
in all cases (previously this was only true for qudit models or for two-or-more qubits).MatrixForwardSimulator
if needed.Unit Test Fixes
test_packages
which were written assuming the default simulator wasMatrixForwardSimulator
. A whole bunch more broke for this reasone when I made the patch above changing the default casting behavior. Where appropriate I've updated these tests to be compatible with both simulators. In places where theMatrixForwardSimulator
really was required (e.g.dproduct
andhproduct
methods were required for the thing being tested) I've made sure those tests have had the proper simulator specified explicitly.Model
method which no longer exists. I went ahead and deleted these for the sake of cleaning things up. These tests were already being skipped or commented out, so there is no change to the tests being run.