Code Monkey home page Code Monkey logo

qiskit-terra's Introduction

Qiskit Terra

LicenseBuild StatusCoverage Status

Qiskit is an open-source framework for working with noisy quantum computers at the level of pulses, circuits, and algorithms.

Qiskit is made up of elements that work together to enable quantum computing. This element is Terra and is the foundation on which the rest of Qiskit is built.

Installation

We encourage installing Qiskit via the pip tool (a python package manager), which installs all Qiskit elements, including Terra.

pip install qiskit

PIP will handle all dependencies automatically and you will always install the latest (and well-tested) version.

To install from source, follow the instructions in the documentation.

Creating Your First Quantum Program in Qiskit Terra

Now that Qiskit is installed, it's time to begin working with Terra.

We are ready to try out a quantum circuit example, which is simulated locally using the Qiskit BasicAer element. This is a simple example that makes an entangled state.

$ python
>>> from qiskit import *
>>> qc = QuantumCircuit(2, 2)
>>> qc.h(0)
>>> qc.cx(0, 1)
>>> qc.measure([0,1], [0,1])
>>> backend_sim = BasicAer.get_backend('qasm_simulator')
>>> transpiled_qc = transpile(qc, backend_sim)
>>> result = backend_sim.run(assemble(transpiled_qc)).result()
>>> print(result.get_counts(qc))

In this case, the output will be:

{'00': 513, '11': 511}

A script is available here, where we also show how to run the same program on a real quantum computer via IBMQ.

Executing your code on a real quantum chip

You can also use Qiskit to execute your code on a real quantum chip. In order to do so, you need to configure Qiskit for using the credentials in your IBM Q account:

Configure your IBMQ credentials

  1. Create an IBM Q > Account if you haven't already done so.

  2. Get an API token from the IBM Q website under My Account > API Token and the URL for the account.

  3. Take your token and url from step 2, here called MY_API_TOKEN, MY_URL, and run:

    >>> from qiskit import IBMQ
    >>> IBMQ.save_account('MY_API_TOKEN', 'MY_URL')

After calling IBMQ.save_account(), your credentials will be stored on disk. Once they are stored, at any point in the future you can load and use them in your program simply via:

>>> from qiskit import IBMQ
>>> IBMQ.load_account()

Those who do not want to save their credentials to disk should use instead:

>>> from qiskit import IBMQ
>>> IBMQ.enable_account('MY_API_TOKEN')

and the token will only be active for the session. For examples using Terra with real devices we have provided a set of examples in examples/python and we suggest starting with using_qiskit_terra_level_0.py and working up in the levels.

Contribution Guidelines

If you'd like to contribute to Qiskit Terra, please take a look at our contribution guidelines. This project adheres to Qiskit's code of conduct. By participating, you are expected to uphold this code.

We use GitHub issues for tracking requests and bugs. Please join the Qiskit Slack community and use our Qiskit Slack channel for discussion and simple questions. For questions that are more suited for a forum we use the Qiskit tag in the Stack Exchange.

Next Steps

Now you're set up and ready to check out some of the other examples from our Qiskit Tutorials repository.

Authors and Citation

Qiskit Terra is the work of many people who contribute to the project at different levels. If you use Qiskit, please cite as per the included BibTeX file.

Changelog and Release Notes

The changelog for a particular release is dynamically generated and gets written to the release page on Github for each release. For example, you can find the page for the 0.9.0 release here:

https://github.com/Qiskit/qiskit-terra/releases/tag/0.9.0

The changelog for the current release can be found in the releases tab: The changelog provides a quick overview of notable changes for a given release.

Additionally, as part of each release detailed release notes are written to document in detail what has changed as part of a release. This includes any documentation on potential breaking changes on upgrade and new features. For example, You can find the release notes for the 0.9.0 release in the Qiskit documentation here:

https://qiskit.org/documentation/release_notes.html#terra-0-9

License

Apache License 2.0

qiskit-terra's People

Contributors

abbycross avatar abdonrd avatar antoniomezzacapo avatar atilag avatar awcross1 avatar chriseclectic avatar chunfuchen avatar cryoris avatar delapuente avatar diego-plan9 avatar dongreenberg avatar enavarro51 avatar ewinston avatar hushaohan avatar ismaelfaro avatar jaygambetta avatar jesusprubio avatar kdk avatar lcapelluto avatar maddy-tod avatar manoelmarques avatar mtreinish avatar nkanazawa1989 avatar nonhermitian avatar sooluthomas avatar stefan-woerner avatar t-imamichi avatar taalexander avatar woodsp-ibm avatar zoufalc avatar

Stargazers

 avatar

Forkers

shashvatshukla

qiskit-terra's Issues

Allow specifying the basis gates as string

What is the expected behavior?

The gate classes in Qiskit are not that much used by users, mostly we allow to use strings instead of gates for convenience. This would also be nice to specify the basis gates. I.e.

['h', 's', 'tdg']

instead of

from qiskit.circuit.library import HGate, SGate, TdgGate
[HGate(), SGate(), TdgGate()]

Add a multi-qubit test

What is the expected enhancement?

Add a test with multiple single qubit gates in a circuit and make sure that we can decompose this with a small error.

Test the convergence of the algorithm

What is the expected enhancement?

Add a test for the Solovay-Kitaev algorithm itself and check that adding more recursions actually decreases the approximation error.

Add documentation

What is the expected enhancement?

Add more detailed documentation to the SolovayKitaevDecomposition class, which is the one showing up in the official Qiskit documentation on the website. This should include

  • a brief description of the algorithm
  • a reference to the paper we used
  • if our work is based on another github project, it should also mention that one
  • a short example of how to call it and what to expect as output

Fix the tests

What is the current behavior?

The following two tests are failing for me, are you experiencing the same?

test_commutator_decompose_returns_tuple_with_first_x_axis_rotation test_commutator_decompose_returns_tuple_with_second_y_axis_rotation 

Steps to reproduce the problem

Run the tests,

python -m unittest test.python.transpiler.test_solovay_kitaev

Make pylint pass

What is the expected enhancement?

To merge code into Qiskit, we have to make pylint pass without an error. You can check pylint by running

make lint   # global for all of Qiskit Terra, takes pretty long (~20min for me)
pylint -rn qiskit/transpiler/passes/synthesis test/python/transpiler/test_solovay_kitaev.py  # our files only, very fast

alternatively, check it with VS Code ๐Ÿ™‚

The current output is:
pylint -rn qiskit/transpiler/passes/synthesis test/python/transpiler/test_solovay_kitaev.py
************* Module qiskit.transpiler.passes.synthesis
qiskit/transpiler/passes/synthesis/__init__.py:19:0: C0304: Final newline missing (missing-final-newline)
************* Module qiskit.transpiler.passes.synthesis.solovay_kitaev_utils
qiskit/transpiler/passes/synthesis/solovay_kitaev_utils.py:390:0: C0103: Argument name "u" doesn't conform to '[a-z_][a-z0-9_]{2,30}|ax|dt$' pattern (invalid-name)
qiskit/transpiler/passes/synthesis/solovay_kitaev_utils.py:402:0: C0103: Argument name "u" doesn't conform to '[a-z_][a-z0-9_]{2,30}|ax|dt$' pattern (invalid-name)
************* Module qiskit.transpiler.passes.synthesis.solovay_kitaev
qiskit/transpiler/passes/synthesis/solovay_kitaev.py:58:0: C0330: Wrong continued indentation (add 1 space).
                            for comb in itertools.product(*[basis_gates] * reps))
                            ^| (bad-continuation)
************* Module test.python.transpiler.test_solovay_kitaev
test/python/transpiler/test_solovay_kitaev.py:35:59: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:150:30: C0326: Exactly one space required after :
def _generate_x_rotation(angle:float) -> np.ndarray:
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:0: C0301: Line too long (103/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:151:23: C0326: Exactly one space required after comma
    return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
                       ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:25: C0326: Exactly one space required after comma
    return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:28: C0326: Exactly one space required after comma
    return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:31: C0326: Exactly one space required after comma
    return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
                               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:47: C0326: Exactly one space required after comma
    return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
                                               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:65: C0326: Exactly one space required after comma
    return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
                                                                 ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:68: C0326: Exactly one space required after comma
    return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
                                                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:151:84: C0326: Exactly one space required after comma
    return np.array([[1,0,0],[0,math.cos(angle),-math.sin(angle)],[0,math.sin(angle),math.cos(angle)]])
                                                                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:153:30: C0326: Exactly one space required after :
def _generate_y_rotation(angle:float) -> np.ndarray:
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:0: C0301: Line too long (103/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:154:37: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
                                     ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:39: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
                                       ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:56: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
                                                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:59: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
                                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:61: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
                                                             ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:64: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
                                                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:82: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
                                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:154:84: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),0,math.sin(angle)],[0,1,0],[-math.sin(angle),0,math.cos(angle)]])
                                                                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:156:30: C0326: Exactly one space required after :
def _generate_z_rotation(angle:float) -> np.ndarray:
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:0: C0301: Line too long (103/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:157:37: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
                                     ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:54: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
                                                      ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:57: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
                                                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:74: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
                                                                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:90: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
                                                                                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:93: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
                                                                                             ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:96: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
                                                                                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:157:98: C0326: Exactly one space required after comma
    return np.array([[math.cos(angle),-math.sin(angle),0],[math.sin(angle),math.cos(angle),0],[0,0,1]])
                                                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:174:28: C0326: Exactly one space required after comma
        return np.array([1.0,0.0,0.0])
                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:174:32: C0326: Exactly one space required after comma
        return np.array([1.0,0.0,0.0])
                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:176:28: C0326: Exactly one space required after comma
        return np.array([0.0,1.0,0.0])
                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:176:32: C0326: Exactly one space required after comma
        return np.array([0.0,1.0,0.0])
                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:178:28: C0326: Exactly one space required after comma
        return np.array([0.0,0.0,1.0])
                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:178:32: C0326: Exactly one space required after comma
        return np.array([0.0,0.0,1.0])
                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:180:39: C0326: Exactly one space required after comma
        return np.array([1/math.sqrt(3),1/math.sqrt(3),1/math.sqrt(3)])
                                       ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:180:54: C0326: Exactly one space required after comma
        return np.array([1/math.sqrt(3),1/math.sqrt(3),1/math.sqrt(3)])
                                                      ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:182:25: C0326: Exactly one space required after :
def _generate_x_su2(angle:float) -> np.ndarray:
                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:184:0: C0330: Wrong continued indentation (remove 2 spaces).
                       [math.sin(angle/2)*1j, math.cos(angle/2)]], dtype=complex)
                     | ^ (bad-continuation)
test/python/transpiler/test_solovay_kitaev.py:186:25: C0326: Exactly one space required after :
def _generate_y_su2(angle:float) -> np.ndarray:
                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:188:0: C0330: Wrong continued indentation (remove 4 spaces).
                         [-math.sin(angle/2), math.cos(angle/2)]], dtype=complex)
                     |   ^ (bad-continuation)
test/python/transpiler/test_solovay_kitaev.py:190:25: C0326: Exactly one space required after :
def _generate_z_su2(angle:float) -> np.ndarray:
                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:194:27: C0326: Exactly one space required after comma
    base = np.array([[alpha,beta],[-np.conj(beta),np.conj(alpha)]])
                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:194:33: C0326: Exactly one space required after comma
    base = np.array([[alpha,beta],[-np.conj(beta),np.conj(alpha)]])
                                 ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:194:49: C0326: Exactly one space required after comma
    base = np.array([[alpha,beta],[-np.conj(beta),np.conj(alpha)]])
                                                 ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:196:15: C0326: Exactly one space required around comparison
    if abs(det)<1e10:
               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:197:27: C0326: Exactly one space required after comma
        return np.array([[1,0],[0,1]])
                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:197:30: C0326: Exactly one space required after comma
        return np.array([[1,0],[0,1]])
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:197:33: C0326: Exactly one space required after comma
        return np.array([[1,0],[0,1]])
                                 ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:202:24: C0326: Exactly one space required after comma
    vector = np.array([a,b,c])
                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:202:26: C0326: Exactly one space required after comma
    vector = np.array([a,b,c])
                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:203:32: C0326: Exactly one space required before comparison
    if a != 0.0 or b != 0.0 or c!= 0.0:
                                ^^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:207:26: C0326: Exactly one space required after comma
        return np.array([1,0,0])
                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:207:28: C0326: Exactly one space required after comma
        return np.array([1,0,0])
                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:210:106: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:210:0: C0301: Line too long (106/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:210:28: C0326: Exactly one space required after comma
    return array.shape == (3,3) and abs(np.linalg.det(array)-1.0)< 1e-10 and not False in np.isreal(array)
                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:210:65: C0326: Exactly one space required before comparison
    return array.shape == (3,3) and abs(np.linalg.det(array)-1.0)< 1e-10 and not False in np.isreal(array)
                                                                 ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:213:39: C0326: Exactly one space required after comma
    for t in itertools.product(range(2),range(2)):
                                       ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:214:43: C0326: Exactly one space required before comparison
        if abs(a[t[0]][t[1]]-b[t[0]][t[1]])> 1e-10:
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:226:41: C0326: Exactly one space required after comma
        [np.dot(_generate_z_rotation(0.5),_generate_y_rotation(0.4))],
                                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:227:41: C0326: Exactly one space required after comma
        [np.dot(_generate_y_rotation(0.5),_generate_x_rotation(0.4))]
                                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:230:98: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:235:0: C0301: Line too long (118/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:235:36: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:235:66: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:235:79: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:235:103: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                                                       ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:236:100: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:245:41: C0326: Exactly one space required after comma
        [np.dot(_generate_z_rotation(0.5),_generate_y_rotation(0.4))],
                                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:246:41: C0326: Exactly one space required after comma
        [np.dot(_generate_y_rotation(0.5),_generate_x_rotation(0.4))]
                                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:249:103: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:249:0: C0301: Line too long (103/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:253:0: C0301: Line too long (125/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:253:44: C0326: Exactly one space required after comma
        actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
                                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:253:62: C0326: Exactly one space required after comma
        actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
                                                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:253:95: C0326: Exactly one space required after comma
        actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
                                                                                               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:254:53: C0326: No space allowed after bracket
        self.assertTrue(are_almost_equal_so3_matrices( actual_commutator,u_so3))
                                                     ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:254:72: C0326: Exactly one space required after comma
        self.assertTrue(are_almost_equal_so3_matrices( actual_commutator,u_so3))
                                                                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:256:0: C0301: Line too long (118/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:256:36: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:256:66: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:256:79: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:256:103: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                                                       ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:257:105: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:257:0: C0301: Line too long (105/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:261:0: C0301: Line too long (125/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:261:44: C0326: Exactly one space required after comma
        actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
                                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:261:62: C0326: Exactly one space required after comma
        actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
                                                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:261:95: C0326: Exactly one space required after comma
        actual_commutator = np.dot(first_so3,np.dot(second_so3,np.dot(np.matrix.getH(first_so3),np.matrix.getH(second_so3))))
                                                                                               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:262:53: C0326: No space allowed after bracket
        self.assertTrue(are_almost_equal_so3_matrices( actual_commutator,u_so3))
                                                     ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:262:72: C0326: Exactly one space required after comma
        self.assertTrue(are_almost_equal_so3_matrices( actual_commutator,u_so3))
                                                                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:264:0: C0301: Line too long (118/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:264:36: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:264:66: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:264:79: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:264:103: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                                                       ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:268:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[0][0],1.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:269:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[0][1],0.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:270:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[0][2],0.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:271:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[1][0],0.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:272:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[2][0],0.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:274:0: C0301: Line too long (118/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:274:36: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:274:66: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:274:79: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:274:103: C0326: Exactly one space required after comma
    @given(st.builds(_build_rotation,st.floats(max_value=2*math.pi,min_value=0),st.integers(min_value=0,max_value=4)))
                                                                                                       ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:275:0: C0301: Line too long (101/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:278:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[1][1],1.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:279:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[0][1],0.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:280:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[1][0],0.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:281:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[1][2],0.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:282:43: C0326: Exactly one space required after comma
        self.assertAlmostEqual(actual[2][1],0.0)
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:283:0: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:342:34: C0326: Exactly one space required after comma
    @data([GateSequence([IGate()]),IGate(),GateSequence([IGate(),IGate()])])
                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:342:42: C0326: Exactly one space required after comma
    @data([GateSequence([IGate()]),IGate(),GateSequence([IGate(),IGate()])])
                                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:342:64: C0326: Exactly one space required after comma
    @data([GateSequence([IGate()]),IGate(),GateSequence([IGate(),IGate()])])
                                                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:344:24: C0326: Exactly one space required after comma
    def test_append(self,first_value,second_value,third_value):
                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:344:36: C0326: Exactly one space required after comma
    def test_append(self,first_value,second_value,third_value):
                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:344:49: C0326: Exactly one space required after comma
    def test_append(self,first_value,second_value,third_value):
                                                 ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:359:32: C0326: Exactly one space required after comma
        [GateSequence([IGate()]),GateSequence([IGate(),IGate()]),0.0],
                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:359:54: C0326: Exactly one space required after comma
        [GateSequence([IGate()]),GateSequence([IGate(),IGate()]),0.0],
                                                      ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:359:64: C0326: Exactly one space required after comma
        [GateSequence([IGate()]),GateSequence([IGate(),IGate()]),0.0],
                                                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:30: C0326: Exactly one space required after comma
        [GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:40: C0326: Exactly one space required after comma
        [GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
                                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:62: C0326: Exactly one space required after comma
        [GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
                                                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:70: C0326: Exactly one space required after comma
        [GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
                                                                      ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:360:80: C0326: Exactly one space required after comma
        [GateSequence([IGate(),IGate()]),GateSequence([IGate(),IGate(),IGate()]),0.0],
                                                                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:361:30: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1)]),GateSequence([RXGate(1)]),0.0],
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:361:42: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1)]),GateSequence([RXGate(1)]),0.0],
                                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:361:68: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1)]),GateSequence([RXGate(1)]),0.0],
                                                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:362:34: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1)]),GateSequence([RXGate(0.99)]),0.01],
                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:362:63: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1)]),GateSequence([RXGate(0.99)]),0.01],
                                                               ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:363:0: C0330: Wrong hanging indentation.
          )
    |   | ^ (bad-continuation)
test/python/transpiler/test_solovay_kitaev.py:365:0: C0301: Line too long (126/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:365:43: C0326: Exactly one space required after comma
    def test_represents_same_gate_true(self,first_sequence: 'GateSequence',second_sequence: 'GateSequence', precision: float):
                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:365:74: C0326: Exactly one space required after comma
    def test_represents_same_gate_true(self,first_sequence: 'GateSequence',second_sequence: 'GateSequence', precision: float):
                                                                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:367:0: C0303: Trailing whitespace (trailing-whitespace)
test/python/transpiler/test_solovay_kitaev.py:369:32: C0326: Exactly one space required after comma
        [GateSequence([IGate()]),GateSequence([IGate(),RXGate(1)]),0.0],
                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:369:54: C0326: Exactly one space required after comma
        [GateSequence([IGate()]),GateSequence([IGate(),RXGate(1)]),0.0],
                                                      ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:369:66: C0326: Exactly one space required after comma
        [GateSequence([IGate()]),GateSequence([IGate(),RXGate(1)]),0.0],
                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:370:32: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1),RXGate(1),RXGate(0.5)]),GateSequence([RXGate(1)]),0.0],
                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:370:42: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1),RXGate(1),RXGate(0.5)]),GateSequence([RXGate(1)]),0.0],
                                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:370:56: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1),RXGate(1),RXGate(0.5)]),GateSequence([RXGate(1)]),0.0],
                                                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:370:82: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1),RXGate(1),RXGate(0.5)]),GateSequence([RXGate(1)]),0.0],
                                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:371:34: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1)]),GateSequence([RXGate(0.5)]),0.0],
                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:371:62: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1)]),GateSequence([RXGate(0.5)]),0.0],
                                                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:372:34: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:372:60: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
                                                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:372:74: C0326: Exactly one space required after comma
        [GateSequence([RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
                                                                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:0: C0301: Line too long (104/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:373:34: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:46: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
                                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:58: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
                                                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:84: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
                                                                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:373:98: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.5),RXGate(1)]),GateSequence([RXGate(0.3),RXGate(0.2)]),0.0],
                                                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:0: C0301: Line too long (104/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:374:34: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:46: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
                                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:58: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
                                                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:84: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
                                                                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:374:98: C0326: Exactly one space required after comma
        [GateSequence([RXGate(0.3),RXGate(0.8),RXGate(1)]),GateSequence([RXGate(0.1),RXGate(0.2)]),0.0],
                                                                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:375:0: C0330: Wrong hanging indentation.
          )
    |   | ^ (bad-continuation)
test/python/transpiler/test_solovay_kitaev.py:377:0: C0301: Line too long (127/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:377:44: C0326: Exactly one space required after comma
    def test_represents_same_gate_false(self,first_sequence: 'GateSequence',second_sequence: 'GateSequence', precision: float):
                                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:377:75: C0326: Exactly one space required after comma
    def test_represents_same_gate_false(self,first_sequence: 'GateSequence',second_sequence: 'GateSequence', precision: float):
                                                                           ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:381:30: C0326: Exactly one space required after comma
        [GateSequence([IGate(),IGate()]),GateSequence([]),0.0],
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:381:40: C0326: Exactly one space required after comma
        [GateSequence([IGate(),IGate()]),GateSequence([]),0.0],
                                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:381:57: C0326: Exactly one space required after comma
        [GateSequence([IGate(),IGate()]),GateSequence([]),0.0],
                                                         ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:382:30: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate()]),GateSequence([RXGate(1)]),0.0],
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:382:40: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate()]),GateSequence([RXGate(1)]),0.0],
                                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:382:50: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate()]),GateSequence([RXGate(1)]),0.0],
                                                  ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:382:76: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate()]),GateSequence([RXGate(1)]),0.0],
                                                                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:0: C0301: Line too long (106/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:383:30: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:40: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
                                        ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:48: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
                                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:62: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
                                                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:86: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
                                                                                      ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:383:100: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(1),IGate(),RXGate(0.4)]),GateSequence([RXGate(1),RXGate(0.4)]),0.0],
                                                                                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:384:30: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(2*math.pi),RXGate(2*math.pi)]),GateSequence([]),1e10],
                              ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:384:48: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(2*math.pi),RXGate(2*math.pi)]),GateSequence([]),1e10],
                                                ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:384:68: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(2*math.pi),RXGate(2*math.pi)]),GateSequence([]),1e10],
                                                                    ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:384:85: C0326: Exactly one space required after comma
        [GateSequence([IGate(),RXGate(2*math.pi),RXGate(2*math.pi)]),GateSequence([]),1e10],
                                                                                     ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:387:0: C0301: Line too long (114/100) (line-too-long)
test/python/transpiler/test_solovay_kitaev.py:387:26: C0326: Exactly one space required after comma
    def test_simplify(self,original_sequence: 'GateSequence',expected_sequence: 'GateSequence', precision: float):
                          ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:387:60: C0326: Exactly one space required after comma
    def test_simplify(self,original_sequence: 'GateSequence',expected_sequence: 'GateSequence', precision: float):
                                                            ^ (bad-whitespace)
test/python/transpiler/test_solovay_kitaev.py:393:0: C0304: Final newline missing (missing-final-newline)
test/python/transpiler/test_solovay_kitaev.py:209:0: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:212:0: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:229:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:236:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:248:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:257:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:265:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:275:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:344:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:356:-1: W0105: String statement has no effect (pointless-string-statement)
test/python/transpiler/test_solovay_kitaev.py:364:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:376:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:386:4: C0116: Missing function or method docstring (missing-function-docstring)
test/python/transpiler/test_solovay_kitaev.py:24:0: W0611: Unused special_ortho_group imported from scipy.stats (unused-import)

------------------------------------------------------------------
Your code has been rated at 6.65/10 (previous run: 1.24/10, +5.41)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.