Putting it all together, I am looking at my QASMTest result in light of the Binomial
Distribution Fomula. On Merlin:
My actual results from ibm_kyoto, and the code:
Putting it all together, I am looking at my QASMTest result in light of the Binomial
Distribution Fomula. On Merlin:
My actual results from ibm_kyoto, and the code:
Sometimes mathematics seem complicated, but they really aren't. It can be
a simple matter of mastering definitions. Combinations and permutations are
a case in point.
Below, a combination of three fruit, lemon, apple and lime.
Had a bit of a math moment with Merlin (running Gemimi) this morning.
It has to do with the binomial distribution. Thought I'd share...
https://www.getmerlin.in/fr/share/chat/H5phKZFrjfP
* * *
Been working through BigO notation on IBM Learn. Below, also with Gemini:
https://www.getmerlin.in/fr/share/chat/Wvgv6ZxWICg
Decided to run a test to pin the difference a Qasm backend could make. I am using
the standard set-up, but have added an S gate(phase difference). Running on the QASM
simulator backend:
Below, how-to use the QASM simulator. QASM is a machine-language implementation
of circuits, but one can interact with it using AER python.
Solved my ongoing problem of getting counts from a python list. Actually, ChatGPT4 Pro
solved it. Below, a complete sequence:
I put together a simple program to run on an actual quantum machine, just
to check that I knew how to do this solo. I then went into a queue that lasted 3 days...
The results are in this morning:
Algorithm performance will be measured with repect to size,
that is, the number of gates employed.
if we ignore the initial fanouts.
Circuit depth is not being used here; one considers a layer to be gates that can be runat the same time because they are independent. Thus the two fanouts above are one layer,
the two NOTs another... Our example has deth 4, gates that can be run in parallel.
Add for each, input length. Below, a half-adder:
Rust (programming language) - Wikipedia
Copilot:
Yes, Qiskit has indeed adopted Rust as part of its development. While Qiskit’s primary language is Python, certain computationally intensive internals were re-implemented in Rust for performance reasons. Rust provides a balance between speed and safety, giving Qiskit developers the best of both worlds1. Additionally, Rust is also used in other areas related to quantum computing, such as the rustworkx library, which leverages Rust’s inherent performance and safety2. 😊
Simple, and powerful:
Variables are immutable by default, and adding the mut
keyword allows the variable to be mutated.[39] The following example uses //
, which denotes the start of a comment.[40]
fn main() {
let mut foo = 10; // This code would not compile without adding "mut".
println!("The value of foo is {foo}");
foo = 20;
println!("The value of foo is {foo}");
}
COPILOT:
Mathematics; is there a formula that allows me to predict how many bit it takes to encode a decimal number, say 164?
Certainly! To find the number of bits needed to encode a decimal integer like 164, you can use the following formula:
Number of bits=⌊log2(n)⌋+1
Here, (n) represents the decimal integer. Let’s calculate it for 164:
Compute (\log_2(164)):
(\log_2(164) \approx 7.006)
Take the floor value: (\left\lfloor 7.006 \right\rfloor = 7)
Add 1: (7 + 1 = 8)
So, 164 requires 8 bits for binary representation. 🌟
If you’d like to convert 164 to binary directly, it is (10100100_2)
* * *
Was wondering what query gates are...
https://www.perplexity.ai/search/qiskit-how-could-i-use-the-cry-pcZj2ZpQTIm7xnLK0UyIMg
individual qubits after measurement, they will both appear as 1. That is because this simulator
shows the measured state qubit after measurement.
I am in the queue to actually run this simple circuit on ibm_sherbrooke.