Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 3 characters in body; edited tags
Source Link
Martin Vesely
  • 14.9k
  • 4
  • 31
  • 73

aA while ago iI wrote an example of quantum teleportation circuit onin the IBM composerComposer which ran fine as of three days ago. Yesterday, however, when I try to run the circuit, I get the following error:

Failed - QASM2ParseError: '<input>:27,1: needed a start-of-statement token, but instead got /

I am using the IBM composerComposer and not writing the OpenQASM 2.0 code directly, but of course the composer writes the code automatically. The line that seems to be causing a problem is at the end, and seems to be there due to using 'Freeform alignment' in the composer:

// @columns [0,1,1,1,3,4,5,5,5,6,7,8,8,8,9,10,11,12,13,14]

If I delete that line the code will run, but I lose the freeform alignment and hence visual organization in the composer. Is there a way to keep the freeform alignment line and still get working code?

a while ago i wrote an example quantum teleportation circuit on the IBM composer which ran fine as of three days ago. Yesterday, however, when I try to run the circuit, I get the following error:

Failed - QASM2ParseError: '<input>:27,1: needed a start-of-statement token, but instead got /

I am using the IBM composer and not writing the OpenQASM 2.0 code directly, but of course the composer writes the code automatically. The line that seems to be causing a problem is at the end, and seems to be there due to using 'Freeform alignment' in the composer:

// @columns [0,1,1,1,3,4,5,5,5,6,7,8,8,8,9,10,11,12,13,14]

If I delete that line the code will run, but I lose the freeform alignment and hence visual organization in the composer. Is there a way to keep the freeform alignment line and still get working code?

A while ago I wrote an example of quantum teleportation circuit in the IBM Composer which ran fine as of three days ago. Yesterday, however, when I try to run the circuit, I get the following error:

Failed - QASM2ParseError: '<input>:27,1: needed a start-of-statement token, but instead got /

I am using the IBM Composer and not writing the OpenQASM 2.0 code directly, but of course the composer writes the code automatically. The line that seems to be causing a problem is at the end, and seems to be there due to using 'Freeform alignment' in the composer:

// @columns [0,1,1,1,3,4,5,5,5,6,7,8,8,8,9,10,11,12,13,14]

If I delete that line the code will run, but I lose the freeform alignment and hence visual organization in the composer. Is there a way to keep the freeform alignment line and still get working code?

Source Link

New QASM2ParseError for old circuit on IBM composer

a while ago i wrote an example quantum teleportation circuit on the IBM composer which ran fine as of three days ago. Yesterday, however, when I try to run the circuit, I get the following error:

Failed - QASM2ParseError: '<input>:27,1: needed a start-of-statement token, but instead got /

I am using the IBM composer and not writing the OpenQASM 2.0 code directly, but of course the composer writes the code automatically. The line that seems to be causing a problem is at the end, and seems to be there due to using 'Freeform alignment' in the composer:

// @columns [0,1,1,1,3,4,5,5,5,6,7,8,8,8,9,10,11,12,13,14]

If I delete that line the code will run, but I lose the freeform alignment and hence visual organization in the composer. Is there a way to keep the freeform alignment line and still get working code?