Skip to main content

Questions tagged [compiling]

For questions about compiling problems on quantum hardware. For annealing devices, this can include minor-embedding, quadratization, and other types of gadgetization; while for circuit-based devices this can include anything necessary to get a circuit running on a particular hardware.

Filter by
Sorted by
Tagged with
1 vote
1 answer
75 views

Sorry for the vague title, what I’m really asking is: when writing a compiler for a quantum DSL, many languages have chosen an imperative or functional host language. Few, if any, have chosen a purely ...
Abe Brege's user avatar
3 votes
2 answers
80 views

Can a gate sequence approximating a given single-qubit rotation up to precision $\epsilon$ be compiled in time $O(\log(1/\epsilon))$ (i.e., time strictly logarithmic and not polylog)?
delete000's user avatar
  • 233
3 votes
1 answer
270 views

There are (at least) two conventions for single-qubit, arbitrary-angle Z rotations in quantum computing, which I will call Rz(theta) and Z^t. $$ R_Z(\theta) = \exp(-i \theta Z/2) = \mathrm{diag}(e^{-i ...
Matt Harrigan's user avatar
1 vote
0 answers
60 views

I am using Qiskit to compile a small Qiskit circuit (shown below) with a gate basis consisting of Rigetti native gates: RZ ...
Steve Jeffrey's user avatar
2 votes
1 answer
111 views

Cirq compilation process. I cannot find the documentation that describes the internal structure of the library Cirq by Google. There is much information related to high level functions, but none ...
user29482's user avatar
1 vote
0 answers
104 views

Background I've been reading the paper entitled Some improvements to product formula circuits for Hamiltonian simulation. The authors propose three improvements motivated by phase estimation type ...
Callum's user avatar
  • 1,260
2 votes
0 answers
359 views

Let's consider a set of $N = 2^n$ binary values $S_i \in \left\{-1, 1\right\}$ and define the diagonal matrix $W$ as a quantum unitary operator acting on a system of $n$ qubits: $$ W = \begin{pmatrix} ...
SimoneGasperini's user avatar
3 votes
0 answers
59 views

I have a Hamiltonian of the form: $$ H = c_x(t) \sigma_x + c_y(t) \sigma_y$$ and I want to compile a pulse "P" that has both $\sigma_x$ and $\sigma_y$ control, with different time dependent ...
Annie's user avatar
  • 31
6 votes
0 answers
215 views

Motivated by Aaronson's call to find simple, verifiable proofs of quantumness, suppose we start off with a random polynomial-length circuit $U$ of, say, Hadamard+CCNOT (Toffoli) or CSWAP (Fredkin) ...
Mark Spinelli's user avatar
4 votes
1 answer
133 views

Computing the Matsumoto-Amano normal form of an operator in $U(2)$ involves finding the Bloch sphere representation of said operator, see Remarks on Matsumoto and Amano’s normal form for single-qubit ...
Ntwali B.'s user avatar
  • 483
0 votes
1 answer
120 views

For a very simple circuit, such as from pytket.circuit import Circuit, fresh_symbol a = fresh_symbol("a") circ = Circuit(1) circ.X(0) circ.Ry(a,0) the ...
Diego Olvera 's user avatar
6 votes
1 answer
649 views

I am currently learning randomized compiling with this paper which seems to be the "main" reference on this topic (at least many papers refer to this one). However, I do not understand how ...
Marco Fellous-Asiani's user avatar
1 vote
0 answers
52 views

is there another way to represent a boolean gate. The straight forward way would be to define a gate my a matrix and then apply this gate to the circuit. What i mean by that? For Example an AND-Gate ...
Qubii's user avatar
  • 301
7 votes
2 answers
2k views

Sorry if this question sounds trivial, however I'm struggling to get the intuition of how quantum circuits are actually run on real quantum hardware. As far as I know, in a simulated environment, ...
mpro's user avatar
  • 527
2 votes
1 answer
118 views

I am trying to run a relatively large quantum circuit on Rigetti's Aspen-11. I have a reservation for later today, but I am getting an error when running the code. I know that if you use: ...
user avatar
5 votes
2 answers
222 views

When you run something on one of IBM's free computers, you can look up what it actually ran; i.e. it gives you the decomposition of the circuit you told it to run. When running on IonQ with Amazon's ...
Ken Robbins's user avatar
6 votes
4 answers
703 views

I want to play with the following problem. Given a unitary $U$ with parameters $\theta$ I want to optimize these parameters to make $U$ match some target unitary $V$, i.e. to find $\operatorname{...
Nikita Nemkov's user avatar
2 votes
1 answer
1k views

I want to run a simulation using qasm with a realistic noise model from a backend, specifying a coupling_map as well as an ...
Durd3nT's user avatar
  • 571
5 votes
1 answer
861 views

I am writing some python code to be able to optimise the total error in two qubit gate decomposition. I am using the Qiskit module qiskit.quantum_info.synthesis.two_qubit_decompose My question relates ...
mikeshubrook's user avatar
2 votes
0 answers
142 views

I would like to discuss the discrepancies between what we see in the simulator versus what we see in the actual running of the code on any IBMQ machine for any qubits at 5 or above. I am doing a final ...
Joel Anthony Collins's user avatar