Giter Site home page Giter Site logo

a-auer / qiskit Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 14.0 12.96 MB

A Jupyter notebook that demonstrates the use of Qiskit and the IBM Q Experience using the BBPSSW protocol for entanglement purification as an example.

Jupyter Notebook 100.00%
qiskit qiskit-tutorial quantum-information-science quantum-programming-language

qiskit's People

Contributors

a-auer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

qiskit's Issues

Add a license to the repository

I recently came across your project qiskit and I noticed that the repository github.com/a-auer/qiskit currently does not have a license specified.

Why Adding a License is Important?

As GitHub documents

Public repositories on GitHub are often used to share open source software. For your repository to truly be open source, you'll need to license it so that others are free to use, change, and distribute the software.

Would be possible to add a valid license to this repository? Probably something really OpenSource such as the Apache 2.0 license would fit really well.

Thanks!

EntanglementPurification doesn't run part 5.3 properly

When I try to run the last part of the code, it won't let me run it on an IBMQ device. It gives the following error message:

IBMQJobFailureError Traceback (most recent call last)
in
16 random_idx = np.random.randint(12)
17 job_dict = execute_purification(fidelity, random_idx, ibmq_device, shots=512)
---> 18 rho_fit = rho_from_dict(job_dict, cond_tomo=False)
19 fitted_states.append(rho_fit)
20

in rho_from_dict(job_dict, cond_tomo)
194 else:
195 # Regular quantum state tomography
--> 196 rho_fit = StateTomographyFitter(job_dict["job"].result(), job_dict["circuits"]).fit()
197
198 return rho_fit

~\Anaconda3\envs\dev_qiskit\lib\site-packages\qiskit\providers\ibmq\job\ibmqjob.py in result(self, timeout, wait, partial, refresh)
247
248 if self._status is JobStatus.ERROR and not partial:
--> 249 raise IBMQJobFailureError('Unable to retrieve job result. Job has failed. '
250 'Use job.error_message() to get more details.')
251

IBMQJobFailureError: 'Unable to retrieve job result. Job has failed. Use job.error_message() to get more details.'

With this being the error given by IMBQ: Qubit measurement is followed by instructions [7006]

Is there a way this can be solved? Or is it not possible to do this on a device as the measurement must happen before the last Hadamard gates?

The + operator is no longer supported by QuantumCircuit

In Section 2.3.6, the plus is used to concatenate circuits, altough this is no longer supported.

  • and += operators are no longer defined for QuantumCircuit.
    Instead, you can use the & and &= operators respectively, which use QuantumCircuit.compose().

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.