Comments (2)
What is the expected output?
from scaffcc.
I'm not sure what the flat QASM (scaffold.sh -f
) output should be exactly, but the OpenQASM (scaffold.sh -b
) output has a similar problem:
OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
h q[0];
h q[1];
cx q[1],q[2];
cx q[0],q[1];
h q[0];
measure q[0] -> ;
z q[2];
measure q[1] -> ;
x q[2];
h q[2];
measure q[2] -> ;
The measurement results are not assigned correctly, and z q[2]
and x q[2]
, which should be conditioned on the results, are applied unconditionally. I would expect something like:
OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
h q[0];
h q[1];
cx q[1],q[2];
cx q[0],q[1];
h q[0];
measure q[0] -> m1;
if (m1 == 1) z q[2];
measure q[1] -> m2;
if (m2 == 1) x q[2];
h q[2];
measure q[2] -> m3;
from scaffcc.
Related Issues (20)
- Changing compiler syntax/core HOT 3
- [Algorithms] How to solve the NP-complete problem for Register Allocation?
- [PASS] FlattenModule generated 6837+K sha1.n12812.inlined.ll
- GPL-free HOT 1
- Ground State Estimation
- Publish Dockerfile HOT 7
- Segmentation fault when generating QASM when file contains `cbit c = MeasZ(q);`
- Segmentation fault when assigning several cbit values
- -o is not working for QFT HOT 5
- Can't find math.h and other headers HOT 1
- ScaffCC does not compile with Python 3.4, but does with Python 2.7 HOT 2
- ScaffCC does not compile with C++11
- Building braidflash is not working
- Specification on nisq benchmark adder HOT 2
- Version not alligned HOT 1
- CTQG compilation example: controlled not HOT 7
- About the CTQG part in the paper HOT 2
- CMake Error HOT 17
- Toffoli decomposition not working (?) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scaffcc.