New answers tagged

0

Each of those dicts are a QuantumError. You can learn more about the structure of a QuantumError here. That documentation is most likely what you were looking for. Each instruction is an operation being applied on the qubit(s) in qubits. Each value in probabilities corresponds to the respective operation in instructions.


1

The problem is that IBM Q environment does not show all results in case there is more than 16 results (there is maximally 20 columns in the histogram). To get all results, you have to click on Download in the top right corner of a page with results. Two files with extension *.json are downloaded. Then open file ending with _results.json in notepad and look ...


0

If you really want to simulate measurement, that's how I would do it. A function that finds probability amplitude associated to each eigenstate. import numpy as np import itertools from qutip import basis, tensor, snot def prepareMeasurement(N, psi): # all the spin configurations confs = list(itertools.product([0, 1], repeat=N)) # probability ...


3

First it is instructive to ask oneself: "how does classical data get into my computer?" In a classical computer, your data is always stored in bits. Because calculations in base 2 are not very straightforward for most people there are abstractions like int types for integers and float types for rational numbers with the associated math operations readily ...


0

MD5 hashes are not that hard to crack classically, you probably don't need a quantum computer to do that (for your hash prefix, the pre-image is 2435435 with full hash 9a4f2e9567f170c5685b57d8a6c0af6f). In general, one can use Grover's search algorithm for breaking hash functions; you'd have to implement the hash calculation in a reversible manner (so that ...


2

You cannot deploy C# to Q# Azure platform; Q# Azure platform executes a Quantum Simulator. The C# host program calls Q# operations to be executed on the Quantum Simulator - the code you have here will execute on a traditional computing processor. Please read this link - https://docs.microsoft.com/en-us/quantum/quickstart And this link more about the ...


2

The Qiskit backends (quantum devices or simulators) work only when you explicitly invoke them, usually with execute. The code in your snippet does not call qiskit, and runs on a traditional machine.


Top 50 recent answers are included