Skip to content

Releases: Agony5757/QPanda-lite

qpandalite 0.2.1.post1

15 Apr 06:26
Compare
Choose a tag to compare

Overview

Several bugs have been fixed, including

  • Incompatible Rz implementation. Error occurred when Rz is controlled by other qubits.
  • A new version of originq_dummy is developed, especially a clear version of Noisy Simulator. It allows inputting noise_description, gate_noise_description as well as measurement_error by kwargs.
  • online_info now might be able to close in dummy mode. Adding savepath=None to submit_task can suppress the log output to online_info. Note that this is dependent on the availability of the DummyCacheContainer maintaining the output. Also, get_last_taskid is also not available in dummy mode now.
  • Many features in the result_adapter are now fixed correspondingly.

What's Changed

New Contributors

Full Changelog: 0.2.0...0.2.1.post1

qpandalite 0.2.1

01 Apr 08:10
Compare
Choose a tag to compare
qpandalite 0.2.1 Pre-release
Pre-release

Overview

Several bugs have been fixed, including

  • Incompatible Rz implementation. Error occurred when Rz is controlled by other qubits.
  • A new version of originq_dummy is developed, especially a clear version of Noisy Simulator. It allows inputting noise_description, gate_noise_description as well as measurement_error by kwargs.
  • online_info now might be able to close in dummy mode. Adding savepath=None to submit_task can suppress the log output to online_info. Note that this is dependent on the availability of the DummyCacheContainer maintaining the output. Also, get_last_taskid is also not available in dummy mode now.
  • Many features in the result_adapter are now fixed correspondingly.

Auto-generated release notes

What's Changed

New Contributors

Full Changelog: 0.2.0...0.2.1

qpandalite 0.2.0

09 Jan 09:03
Compare
Choose a tag to compare

qpandalite 0.2.0

See examples in https://github.com/Agony5757/QPanda-lite-Apps

What's New

Add support of origin_qcloud

What's Changed

Full Changelog: 0.1.9...0.2.0

qpandalite 0.1.9

03 Nov 04:28
Compare
Choose a tag to compare

What's new

  1. Add IBM platform support (not stable)
  2. Add DAGGER and CONTROL support for OriginIR. Also support construct programs like

with c.dagger():
c.x(1)

  1. Update error info in qpandalite.task (various platforms). Especially outputting detailed information if the required xx_config.json does not satisfy the requirement.
  2. Add kwargs for functions qpandalite.task.originq to absorb dummy_path parameter. This allows a better migration from dummy to real-platform.
  3. Fix the error when no config file is input if using originq_dummy
  4. Fix the error when the type of dummy_path is str when using originq_dummy

(Auto generated) What's Changed

Full Changelog: 0.1.8...0.1.9

qpandalite 0.1.8

06 Oct 05:57
Compare
Choose a tag to compare

What's Changed

  • AttributeError: 'QPandaLitePy.Simulator' object has no attribute 'sx'… by @YunJ1e in #6

Full Changelog: 0.1.7...0.1.8

qpandalite 0.1.7

05 Oct 12:21
Compare
Choose a tag to compare

TODO.

Full Changelog: 0.1.6...0.1.7

qpandalite 0.1.6

28 Sep 14:28
Compare
Choose a tag to compare

What's New

placeholder....

Full Changelog: 0.1.5...0.1.6

qpandalite 0.1.5

26 Sep 12:25
Compare
Choose a tag to compare

What's New

Multiple-task support in OriginQ

QPanda-lite can automatically handle multiple tasks in OriginQ task submission.

Examples:

import qpandalite
import qpandalite.task.originq as originq

# On step 1

#generate 200 circuits, allowing submitting 200 in single task
circuits = _make_many_circuits(1000) 

# >>> taskid: ['ID1', 'ID2', ..'ID5'] where each id represents 200 tasks, 5 total.
taskid = originq.submit_task(circuits)

# On step 2

results = originq.query_by_taskid(taskid)

# results contains 1000 independent tasks when all finished.
if results['status'] == 'success' : results = results['result']

# if one task failed, then status is failed. Otherwise, if one task is running, then status is running
else: print(results['status'])

Dummy server

Dummy server is a fake-backend which simulates task_submit, query_by_taskid, ...
It generates dummy taskid and classically simulates the circuit, producing ideal results.

Usage: replacing

import qpandalite.task.originq as originq

by

import qpandalite.task.dummy as originq

and vice versa!

qpandalite 0.1.4

25 Sep 14:58
Compare
Choose a tag to compare

What's New

Add convert_originq_result and calculate_expectation

Example

result = {'key': ['001','010','100'], 'value': [10, 20, 9970]}
kvresult = convert_originq_result(result, 
                                style='keyvalue', 
                                prob_or_shots='prob', 
                                reverse_key=False)

print(calculate_expectation(kvresult, ['IIZ', 'IZI', 'ZII', 'ZZZ']))

listresult = convert_originq_result(result, 
                                style='list', 
                                prob_or_shots='prob', 
                                reverse_key=False)
print(calculate_expectation(listresult, ['IIZ', 'IZI', 'ZII', 'ZZZ']))

Full Changelog 0.1.3 to 0.1.4: 0.1.3...0.1.4
Full Changelog 0.1.2 to 0.1.4: 0.1.2...0.1.4

qpandalite 0.1.3

25 Sep 12:44
Compare
Choose a tag to compare

What's New

OriginIR_Simulator now supports re-simulate a new originir.
OriginIR_Simulator.state can read the internal quantum state.

Full Changelog: 0.1.2...0.1.3