LittleEndian
is a single atomic value. If you have an array of little-endian registers (that is, LittleEndian[]
), then ApplyToEach
works great over that array. On the other hand, if you want to apply an operation to each qubit making up a single LittleEndian
register, you can unwrap it with the unwrap operator (!
) to get an array of type Qubit[]
.
LittleEndian
UDT marks that a register of qubits should be interpreted where ๐โ is the least-significant (little end) bit in the expansion of ๐. From that perspective, a big-endian paper can be converted to a little-endian one by reversing the convention used to order qubits.
Hi there! I've got another difficulty in understanding a part of the topic of Circuit-Centric-Classifiers
Here's the excerpt from the paper that I am having difficulty understanding
I don't even know where to begin reasoning the paragraph, can someone help me in justifying how this is the case?
Hello,
I am measuring in bell basis . I apply H and CNOT gate.
I measured several times and this outputs I got:
Measured CNOT ยท H |00? and observed (Zero, Zero)
Measured CNOT ยท H |00? and observed (Zero, Zero)
Measured CNOT ยท H |00? and observed (Zero, Zero)
Measured CNOT ยท H |00? and observed (One, One)
Measured CNOT ยท H |00? and observed (Zero, Zero)
Measured CNOT ยท H |00? and observed (One, One)
Measured CNOT ยท H |00? and observed (One, One)
Measured CNOT ยท H |00? and observed (Zero, Zero)
I did not get (One , Zero ) output . If input (One,One), I think output should be (One,Zero) and if input ( Zero, One ) output should be ( Zero,One) .
Why I do not get this outputs ?
@cgranade Please correct me wherever I am wrong. 1) Can't we have those cases where we don't really need to map our data into a higher dimension, i.e. we can prepare our state in a euclidean space without needing to apply any tensor product to prepare them? (This assumes that the data is simple enough that we don't really require any further mapping)
2) If the above statement is true, how is having our dataset in a limited space a bad thing? Why are we treating State Preparation step as if it is at this point that we are training our model? Isn't this analogous to zero initialization of weights in classical Machine Learning? We start at the same limited value (zero) and then learn the appropriate weights and biases.
3) If I am completely off-track here, could you please tell me some resources to get started in this part of the subject? I think that this is certainly getting too much for me.
i.e. we can prepare our state in a euclidean space without needing to apply any tensor product to prepare them
The state of a quantum system is always a vector in Hilbert space rather than Euclidian space, but that's largely a mathematical artifact of how we describe, model, and simulate quantum systems. In particular, just like with the kernel trick in traditional ML, we never write down those vectors in Hilbert space but prepare them implicitly.
Sweet, I'll get something moving soon for the chat platform stuff!
In the meantime verson 0.12 is out of the QDK, I wrote up some thought/context on the release notes here: https://twitter.com/crazy4pi314/status/1280174137973981201?s=20