qosf / qml-mooc Goto Github PK
View Code? Open in Web Editor NEWLecture notebooks and coding assignments for the quantum machine learning MOOC created by Peter Wittek on EdX in the Spring 2019
License: MIT License
Lecture notebooks and coding assignments for the quantum machine learning MOOC created by Peter Wittek on EdX in the Spring 2019
License: MIT License
Hi, I have 2 questions below regarding the postselect
function in the forest version of 11_Kernel_Methods.ipynb
notebook. Please help. Thank you.
Q1)
# define lambda function that retrieves only results where the ancilla is in the |0> state (test data)
post_select = lambda counts: [(state, occurences) for state, occurences in counts.items() if state[0] == '0']
With regards to the above statement? Isn't the ancillia qubit suppose to be the rightmost (least significant) bit? If so, shouldn't the state[0]
be state[-1]
?
Q2)
retrieve_class = lambda binary_class: [occurences for state, occurences in postselection.items() if state[-1] == str(binary_class)]
With regards to the above statement? Isn't the class qubit suppose to be the leftmost (most significant) bit? If so, shouldn't the state[-1]
be state[0]
?
from qiskit import Aer #Instead of get_aer_backend('')
Aer.get_backend('')
from qiskit.aqua.operators.legacy import WeightedPauliOperator # Instead of qiskit.aqua.Operator
Comparing the commits between this (github) version and the version on gitlab, it appears that they are out of sync in that each has commits the other is lacking.
I would like to request that they be synchronised. I have changes I'd like to submit (updating cirq and qiskit to their latest versions, 1.3.0 and 1.0.2 respectively), which is blocked by it not being clear where I should submit the changes.
Currently the MOOC works with cirq 1.3.0.
Version 1.4.0 was was just released.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.