Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
mapping from Euler angles to quaternions in mapper #607
What is the expected enhancement?
To fix some of the mapper i going to change the 1q optimization from euler angles to quaternions and it should fix the mapper issues that keep getting brought up.
This is a low priority as most times it works but the correct way to do it is quaternions.
This was referenced
Jun 28, 2018
Here are 2 tiny tests that trigger this error.
qasm_string_1= """OPENQASM 2.0; include "qelib1.inc"; qreg qr; cx qr,qr; rz(0.7) qr; rx(1.570796) qr; """
qasm_string_2 = """OPENQASM 2.0; include "qelib1.inc"; qreg qr; y qr; h qr; s qr; h qr; """
In both cases, the error occurs during compilation (specifically during
from qiskit import * import Qconfig from pprint import pprint register(Qconfig.APItoken) circ = load_qasm_string(qasm_string_1) qobj = compile(circ, 'ibmqx4') pprint(qobj)