mindquantum.core.circuit

Circuit.

Quantum circuit module.

Class

mindquantum.core.circuit.Circuit

The quantum circuit module.

mindquantum.core.circuit.SwapParts

Swap two different part of quantum circuit, with or without control qubits.

mindquantum.core.circuit.UN

Map a quantum gate to different objective qubits and control qubits.

Function

mindquantum.core.circuit.add_prefix

Add a prefix on the parameter of a parameterized quantum circuit or a parameterized quantum operator.

mindquantum.core.circuit.add_suffix

Add a suffix on the parameter of a parameterized quantum circuit or a parameterized quantum operator.

mindquantum.core.circuit.apply

Apply a quantum circuit or a quantum operator (a function that can generate a quantum circuit) to different qubits.

mindquantum.core.circuit.as_ansatz

Conversion decorator of a circuit to an ansatz circuit.

mindquantum.core.circuit.as_encoder

Conversion decorator of a circuit to an encoder circuit.

mindquantum.core.circuit.change_param_name

Change the parameter name of a parameterized quantum circuit or a parameterized quantum operator.

mindquantum.core.circuit.controlled

Add control qubits on a quantum circuit or a quantum operator.

mindquantum.core.circuit.dagger

Get the hermitian dagger of a quantum circuit or a quantum operator.

mindquantum.core.circuit.decompose_single_term_time_evolution

Decompose a time evolution gate into basic quantum gates.

mindquantum.core.circuit.pauli_word_to_circuits

Convert a single pauli word qubit operator to a quantum circuit.

mindquantum.core.circuit.shift

Shift the qubit range of the given circuit.

mindquantum.core.circuit.qfi

Calculate the quantum fisher information of the given parameterized circuit with given parameters.

mindquantum.core.circuit.partial_psi_partial_psi

Calculate the following value of the given parameterized quantum circuit.

mindquantum.core.circuit.partial_psi_psi

Calculate the following value of the given parameterized quantum circuit.

Channel adder

mindquantum.core.circuit.ChannelAdderBase

Add noise channel after or before quantum gate.

mindquantum.core.circuit.NoiseChannelAdder

Add single qubit quantum channel.

mindquantum.core.circuit.MeasureAccepter

Select measurement gate.

mindquantum.core.circuit.ReverseAdder

Reverse the accepter and excluder rules.

mindquantum.core.circuit.NoiseExcluder

Exclude a noise channel.

mindquantum.core.circuit.BitFlipAdder

Add BitFlip channel after or before quantum gate.

mindquantum.core.circuit.MixerAdder

Execute each adder if all accepter and excluder are met.

mindquantum.core.circuit.SequentialAdder

Execute each adder in this sequential.

mindquantum.core.circuit.QubitNumberConstrain

Only add noise channel for n_qubits quantum gate.

mindquantum.core.circuit.QubitIDConstrain

Select gate with qubit id in given list.

mindquantum.core.circuit.GateSelector

Select gate to add noise channel.

mindquantum.core.circuit.DepolarizingChannelAdder

Add DepolarizingChannel.

shortcut

The operators blow are shortcut of correspand quantum circuit operators.

shortcut

high level circuit operators

mindquantum.core.circuit.C

mindquantum.core.circuit.controlled

mindquantum.core.circuit.D

mindquantum.core.circuit.dagger

mindquantum.core.circuit.A

mindquantum.core.circuit.apply

mindquantum.core.circuit.AP

mindquantum.core.circuit.add_prefix

mindquantum.core.circuit.CPN

mindquantum.core.circuit.change_param_name