- [STABLE]
FSim
: Fermionic simulation gate supported, and this gate also works in variational quantum algorithm. - [STABLE]
U3
: The single qubit arbitrary gate U3 now will work as a single gate but not a piece of quantum circuit. U3 gate also works in variational quantum algorithm. - [STABLE]
Customed parameterized gate
. Customed parameterized gate now will compiled to machine code by jit compiler numba, and the simulator backend can call customed parameterized gate in parallel thread. - [STABLE]
BarrierGate
: BarrierGate now can be acted on certain qubits. - [STABLE]
KrausChannel
: Design a customed kraus channel for quantum simulator.
- [STABLE]
svg
: Now you can set thewidth
to split the svg circuit, so that you can copy it into your paper.
- [STABLE] New simulator supported.
mqvector
andmqvector_gpu
are two mindquantum simulate that prepared for cpu and gpu. Andprojectq
simulator will be deprecated. The new simulator is total compatible with old one, what you only to do is to change the backend name when you initialize the simulator.
- [STABLE]
as_encoder
: Method ofCircuit
to mark this circuit as an encoder circuit. - [STABLE]
as_ansatz
: Method ofCircuit
to mark this circuit as an ansatz circuit. - [STABLE]
encoder_params_name
: Method ofCircuit
to return all encoder parameters in the circuit. - [STABLE]
ansatz_params_name
: Method ofCircuit
to return all ansatz parameters in the circuit. - [STABLE]
remove_noise
: Method ofCircuit
to remove all noise channels. - [STABLE]
with_noise
: Method ofCircuit
to add a given noise channel after every non-noise gate. - [STABLE]
as_encoder
: A decorator to mark the circuit returned by the decorator function as an encoder circuit. - [STABLE]
as_ansatz
: A decorator to mark the circuit returned by the decorator function as an ansatz circuit. - [STABLE]
qfi
: A method that can calculate the quantum fisher information of a given parameterized quantum circuit. - [STABLE]
partial_psi_partial_psi
: A method that can calculate the first part of quantum fisher information. - [STABLE]
partial_psi_psi
: A method that can calculate the second part of quantum fisher information.
- [STABLE]
AmplitudeDampingChannel
: Amplitude damping channel, caused by the energy dissipation. - [STABLE]
PhaseDampingChannel
: Phase damping channel express error that qubit loses quantum information without exchanging energy with environment.
- [STABLE]
split
: A method ofFermionOperator
andQubitOperator
that can split the coefficient with the operator.
- [STABLE]
astype
: Convert the ParameterResolver to a given type. - [STABLE]
const
: Get the constant part of this ParameterResolver. - [STABLE]
is_const
: Check whether this ParameterResolver is constant. - [STABLE]
encoder_part
: Set a part of parameters to be encoder parameters. - [STABLE]
ansatz_part
: Set a part of parameters to be ansatz parameters. - [STABLE]
as_encoder
: Set all parameters to encoder parameters. - [STABLE]
as_ansatz
: Set all parameters to ansatz parameters. - [STABLE]
encoder_parameters
: Return all encoder parameters. - [STABLE]
ansatz_parameters
: Return all ansatz parameters. - [STABLE]
is_hermitian
: Check whether this ParameterResolver is hermitian conjugate. - [STABLE]
is_anti_hermitian
: Check whether this ParameterResolver is anti hermitian conjugate. - [STABLE]
no_grad_parameters
: Return all parameters that do no require gradient. - [STABLE]
requires_grad_parameters
: Return all parameters that require gradient.
- [STABLE]
copy
: The simulator now supports replication. - [STABLE]
apply_gate
: In this version, you can apply a gate in differential version. - [BETA]
inner_product
: Calculate the inner product of two states in two given simulators.
- [STABLE]
BlochScene
: We support the establishment of a Bloch sphere mapping scene, which can draw quantum states on it, and can also dynamically demonstrate the change of quantum states.
Thanks goes to these wonderful people:
yufan, wengwenkang, xuxusheng, Damien Ngyuen, zhouxu, wangzidong, yangkang, lujiale, zhangzhenghai, fanyi, zhangwengang, wangkaisheng, zhoufeng, wangsiyuan, gongxiaoqing, chengxianbin, sunxiyin, wenwenkang, lvdingshun, cuijiangyu, chendiqing, zhangkai, Zotov Yuriy, liqin, zengjinglin, cuixiaopeng, 朱祎康, dorothy20212021, dsdsdshe, buyulin, norl-corxilea, herunhong, Arapat Ablimit, NoE, panshijie, longhanlin.
Contributions of any kind are welcome!
- Iterate over a multinomial fermion or boson operator and yield each term
- When the operator has only one item, each fermion or boson can be obtained through
singlet
- general_w_state: prepare w-state quantum circuits.
- general_ghz_state: prepare ghz-state quantum circuits
- bitphaseflip_operator: bit-flip quantum circuits
- amplitude_encoder: amplitude-encoded quantum circuits
-
shift
: translation qubit -
reverse_qubits
: flip circuit bit
MaxCutAnsatz
: get_partition, get the max-cut cutting solutionMaxCutAnsatz
: get_cut_value, get the number of cuts for a cutting solutionCircuit
: is_measure_end, determine whether the quantum circuit is the end of the measurement gate
- The quantum circuit build by mindquantum now can be showd by svg in jupyter notebook, just call
svg()
of any quantum circuits.
MindQuantum adds the following quantum channels for quantum noise simulation
PauliChannel
: Pauli channelBitFlipChannel
: bit-flip channelPhaseFlipChannel
: phase-flip channelBitPhaseFlipChannel
: bit-phase flip channelDepolarizingChannel
: depolarized channel
We unified the abbreviations of some nouns in MindQuantum.
isparameter
property of gate changes toparameterized
0.3.1 | 0.5.0 |
>>> from mindquantum import RX
>>> gate = RX('a').on(0)
>>> gate.isparameter
True |
>>> from mindquantum import RX
>>> gate = RX('a').on(0)
>>> gate.parameterized
True |
para_name
of a quantum circuit changes toparams_name
0.3.1 | 0.5.0 |
>>> from mindquantum import Circuit
>>> circ = Circuit().rx('a', 0)
>>> circ.para_name
['a'] |
>>> from mindquantum import Circuit
>>> circ = Circuit().rx('a', 0)
>>> circ.params_name
['a'] |
The quantum neural network API was redesigned in this version. From now on, we can easily build a hybrid quantum neural network with the help of Simulator
in PYNATIVE_MODE
.
The following API was removed.
generate_pqc_operator
PQC
MindQuantumLayer
generate_evolution_operator
Evolution
MindQuantumAnsatzOnlyLayer
MindQuantumAnsatzOnlyOperator
The new API was shown as below.
MQOps
MQN2Ops
MQAnsatzOnlyOps
MQN2AnsatzOnlyOps
MQEncoderOnlyOps
MQN2EncoderOnlyOps
MQLayer
MQN2Layer
MQAnsatzOnlyLayer
MQN2AnsatzOnlyLayer
The above modules are placed in mindquantum.framework
.
Due to the duplication of functions, we deleted some APIs.
mindquantum.circuit.StateEvolution
The following APIs have been remoted.
mindquantum.core.operators.Hamiltonian.mindspore_data
mindquantum.core.operators.Projector.mindspore_data
mindquantum.core.circuit.Circuit.mindspore_data
mindquantum.core.parameterresolver.ParameterResolver.mindspore_data
New gates are shown as below.
mindquantum.core.gates.SGate
mindquantum.core.gates.TGate
Measurement on certain qubits are now supported. The related APIs are shown as below.
mindquantum.core.gates.Measure
mindquantum.core.gates.MeasureResult
QASM is now supported.
mindquantum.io.OpenQASM
mindquantum.io.random_hiqasm
mindquantum.io.HiQASM
Simulator is now separated from MindSpore backend. Now you can easily to use a simulator.
mindquantum.simulator.Simulator
For improving MindQuantum's package structure, we did some refactoring on MindQuantum.
old | new |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thanks goes to these wonderful people:
yufan, wengwenkang, xuxusheng, Damien Ngyuen, zhouxu, wangzidong, yangkang, lujiale, zhangzhenghai, fanyi, zhangwengang, wangkaisheng, zhoufeng, wangsiyuan, gongxiaoqing, chengxianbin, sunxiyin, wenwenkang, lvdingshun, cuijiangyu, chendiqing, zhangkai, Zotov Yuriy, liqin, zengjinglin, cuixiaopeng.
Contributions of any kind are welcome!
- Three tutorials have been rewritten to make them easier to read
- Circuit information such as qubit number, parameters will update immediately after you add gate
- The UN operator now support parameterized gate
- New ansatz that solving max 2 sat problem now are supported
Thanks goes to these wonderful people:
yufan, wengwenkang, xuxusheng, wangzidong, yangkang, lujiale, fanyi, zhangwengang, wangkaisheng, zhoufeng, wangsiyuan, gongxiaoqing, chengxianbin, sunxiyin, wenwenkang, lvdingshun, cuijiangyu, chendiqing, zhangkai, Damien Ngyuen, Zotov Yuriy, liqin, zengjinglin, cuixiaopeng.
Contributions of any kind are welcome!
- Parameterized FermionOperator and QubitOperator for quantum chemistry
- Different kinds of transformation between FermionOperator and QubitOperator
- UCCSD, QAOA and hardware efficient ansatz supported
- MindQuantumAnsatzOnlyLayer for simulating circuit with ansatz only circuit
- TimeEvolution with first order Trotter decomposition
- High level operations for modifying quantum circuit
Thanks goes to these wonderful people:
yufan, wengwenkang, xuxusheng, wangzidong, yangkang, lujiale, fanyi, zhangwengang, wangkaisheng, zhoufeng, wangsiyuan, gongxiaoqing, chengxianbin, sunxiyin, wenwenkang, lvdingshun, cuijiangyu, chendiqing, zhangkai, Damien Ngyuen, Zotov Yuriy, liqin, zengjinglin, cuixiaopeng.
Contributions of any kind are welcome!
Initial release of MindQuantum.
- Easily build parameterized quantum circuit.
- Effectively simulate quantum circuit.
- Calculating the gradient of parameters of quantum circuit.
- PQC (parameterized quantum circuit) operator that naturally compatible with other operators in mindspore framework.
- Evolution operator that evaluate a quantum circuit and return the quantum state.
- Data parallelization for PQC operator.
Thanks goes to these wonderful people:
yufan, wengwenkang, xuxusheng, wangzidong, yangkang, lujiale, wangkaisheng, zhoufeng, wangsiyuan, gongxiaoqing, chengxianbin, sunxiyin, wenwenkang, lvdingshun, cuijiangyu, chendiqing, zhangkai, Damien Ngyuen, Zotov Yuriy, liqin, zengjinglin, cuixiaopeng. MindQuantum adds the following quantum channels for quantum noise simulation
Contributions of any kind are welcome!