Questions tagged [transpile]

The process of rewriting a given input circuit to match the topology of a specific quantum device, and/or to optimize the circuit for execution on present-day noisy quantum systems.

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
248 views

Can you programatically check whether a given set of gates is universal?

I am wondering if there is an automated way to determine whether a given set of quantum operations is universal. More precisely given a set of 1 and 2 qubit gates can we write a program to determine ...
Callum's user avatar
  • 1,015
4 votes
1 answer
312 views

Qiskit unable to transpile the circuit for Rigetti Aspen M 1 on AWS

I am trying to run a Qiskit QAOA algorithm on AWS Rigetti Aspen M 1 Backend using qiskit braket provider. However qiskit is not able to properly transpile the circuit ...
3.14159's user avatar
  • 41
4 votes
0 answers
105 views

Writing circuits in Qiskit using only Clifford and T gates

Is there a way in Qiskit to write my circuit using only Clifford and T gates (CX, S, H, T and I think also $S^\dagger$ and $T^\dagger$)? With the function compile (with aer simulator) it gives me some ...
stopper's user avatar
  • 443
4 votes
0 answers
151 views

Transpiler fails after 1000 iterations

I'm transpiling a set of quantum circuits using ibmq_5_yorktown. However, as the number of circuits gets larger, it shows me the following error message: ...
ZR-'s user avatar
  • 2,388
2 votes
0 answers
46 views

Layout error with after compilation with custom Qiskit pass manager

I am trying to implement the custom Qiskit pass manager from this paper. The code from the authors is provided here on GitHub. I am able to get the pass manager working, and a compiled circuit is ...
greelious's user avatar
  • 121
2 votes
0 answers
24 views

Controlled Ry gate on IBM and IonQ basis gates

As far as I know the basis gates for IBM and IonQ are: IBM: ['cx', 'id', 'rz', 'x', 'sx'] IonQ: ['rx', 'ry', 'rz', 'rxx', 'id'] I used qiskit.transpile to see check how Controlled Ry gate can be ...
user20762126's user avatar
2 votes
1 answer
208 views

Coupling map in QISKIT transpile

I have a 3-qubit unitary represented by a circuit with the following dictionary: {'cx': 30, 'h': 22, 'rz': 15, 's': 4, 'sdg': 4}. I want to use this circuit on IBM ...
R.G.J's user avatar
  • 241
2 votes
0 answers
177 views

How to build the quantum circuit ansatz to implement a diagonal unitary operator with just 1 and -1 elements?

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
2 votes
0 answers
168 views

Qiskit Transpiler Error: Unknown Operation Type

I am trying to use the reset function and recieving the following error: ...
lightly's user avatar
  • 21
2 votes
1 answer
148 views

In Cirq, how do I separate transpilation from execution in simulator.simulate()?

In Qiskit, there are explicit transpile (where a circuit is transpiled to primitive gates) and backend.run (where the circuit is executed in either statevector simulation or real hardware) steps. What ...
pcr's user avatar
  • 121
2 votes
0 answers
63 views

How do you quantify the figurative 'cost' of a quantum circuit

Many gates are not available on a real computer and therefore the circuit must be transpiled into a specific set of gates. I have seen this equation below which is used to to determine the 'cost' of a ...
John's user avatar
  • 107
1 vote
1 answer
46 views

Transpile and run don't use GPU device

I'm trying to run an implementation of Shor's algorithm using a GPU device. While running with $N<1023$ works (23 qubits), when running with a higher number of qubits, the program ends before ...
Pablo Falegre's user avatar
1 vote
1 answer
46 views

Step Optimize1qGatesDecomposition in qiskit transpilation

Is there a way to know what does it does qiskit in the step Optimize1qGatesDecomposition? What I can see is that each time qiskit wants to represent a rotation in ...
user2820579's user avatar
1 vote
1 answer
147 views

Qiskit throws error when changing basis gate for transpilation

I want to transpile a circuit composed of CNOT and 1Q gates into Rzz, CNOT and 1Q gates such that the total number of 2Q gates is minimized. In the example below, I would like the three gates to be ...
Pranav M's user avatar
1 vote
0 answers
126 views

Single Yang-Baxter reflection

Context and definitons I want to study the evolution of a three qubit Heisenberg Hamiltonian: $$H=(I\otimes X\otimes X)+(X\otimes X\otimes I)+(I\otimes Y\otimes Y)+(Y\otimes Y\otimes I)+(I\otimes Z\...
Mauricio's user avatar
  • 2,306
0 votes
0 answers
17 views

BQSkit Selecting Starting Circuit Structure

Background On the BQSKit repository, there is a nice example of using the qfactor algorithm to instantiate a 3-qubit Toffoli circuit. For this to work, however, it is first necessary to specify an ...
Shadow43375's user avatar
0 votes
1 answer
33 views

How to remove or change the Coupling-Map limit is qiskit?

I am trying to implement large qiskit circuits which give coupling map error as coupling map cannot exceed 31 is basic aer_simulator or even ...
Syed Shahmir Kazmi's user avatar
0 votes
0 answers
128 views

Qiskit cant run circuit with reset gate with error

In qiskit if i have a reset gate in a circuit. If i want to add noise to the circuit it wont transpile. For example: ...
Narcano's user avatar
  • 31