-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removes unused imports. * Fixes indentation of big import of gates. * Imports `_gate_label` which was used but not imported (eep!) * Fixes reference to `self.N` in call to `globalphase` gate in `self.add_gate` (eek! -- it was passing an undefined variable `n`) * Exposes `PHASEGATE` which was being implemented but whose implementation was being overwritten. * Removes unused calculation of number of measurements with in a gate (should this have been used somehow instead?) * Removes `self.U_list` from `QubitCircuit` (this state now lives only in `QubitCircuitSimulator`) * Documents the `expand` parameter to `propagators`. * Adds a test for the `latex_code` method. * Adds a test for the `GLOBALPHASE` gate propagator. * Renames `test_qubitcircuit.py` to `test_circuit.py` to match the name of the file being tested. * Renames `propagators_no_expand` to `_propagators_no_expand` to indicate that this is not intended to be part of the `QubitCircuit` API.
- Loading branch information
Showing
2 changed files
with
153 additions
and
112 deletions.
There are no files selected for viewing
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
Oops, something went wrong.