-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Adds a multi-processing simulator for the xmon native gates. #1
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
Conversation
cirq/sim/google/mem_manager_test.py
Outdated
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License.from __future__ import absolute_import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"limitations under the License.from __future__ import absolute_import
"? Looks like a search/replace error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cut and past error. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just minor stuff. Fix it then LGTM.
cirq/sim/google/xmon_simulator.py
Outdated
|
||
state = _state_shard(args) | ||
normalization = np.sqrt(prob_one if result else 1 - prob_one) | ||
state *= _one_projector(args, index) * result \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use parens for line continuation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Thanks. |
- Change fallback representation from (gate:0, gate:1, ...) to (gate, #1, #2, ...) - Fix qubit-symbol mismatch error saying the wrong number. - Drop ext argument. - Had to update contrib/qcircuit_diagram because it uses the ext argument. - Fixed qcircuit_diagram not aligning its output to column boundaries. Looks much better now. - Updaded GateOperation and ControlledGate to delegate to cirq.circuit_diagram_info
1) Add PhasedFSimParameters container that describes cirq.PhasedFSimGate angles
No description provided.