# Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Perform analytic and numeric quantum computations

Contributed by: Wolfram Research, Quantum Computation Framework team

The Wolfram Quantum Framework brings a broad, coherent design for quantum computation, together with a host of leading-edge capabilities and full integration into Mathematica and Wolfram Language. Starting from discrete quantum mechanics, the Framework provides a high-level symbolic representation of quantum bases, states and operators. The Framework can perform measurements and is equipped with various well-known states and operators, such as Bell states and Pauli operators. Using such simulation capabilities as a foundation, one can use the Framework to model and simulate quantum circuits and algorithms, interoperate with many external quantum platforms, and send queries to quantum processing units from a Wolfram notebook.

Within the Framework, all quantum-related functions and objects are natively integrated with Wolfram Language, providing immediate access to a wide array of tools for exploring quantum computational queries and serving as a potent resource for education in the field.

To install this paclet in your Wolfram Language environment,
evaluate this code:

`PacletInstall["Wolfram/QuantumFramework"]`

To load the code after installation, evaluate this code:

`Needs["Wolfram`QuantumFramework`"]`

This paclet works with Version 13.1 and higher of Wolfram Language.

The Wolfram quantum framework handles many different quantum objects, including states, operators, channels, measurements, circuits, and more. It offers specialized functions for various computations like quantum evolution, entanglement monotones, partial tracing, Wigner or Weyl transformations, stabilizer formalism, and additional capabilities. Each functionality incorporates common named operations, such as Schwinger basis, GHZ state, Fourier operator, Grover circuit, and others. Perform computations seamlessly with the Wolfram quantum framework using the standard Wolfram kernel, such as the usual evaluation of codes in Mathematica. Alternatively, leverage the framework to send jobs to quantum processing units via service connections.

Create a quantum circuit composed of Pauli-X on qubits 1 and 2, Hadamard on qubit 1, CNOT with qubit 1 as the controlled and qubit 2 as the target, rotation around the z-axis by a symbolic angle ϕ on qubit 1, rotation around the z-axis by a symbolic angle *θ* on qubit 2, Hadamard on qubits 1 and 2, and finally, measurement in the computational basis on qubits 1 and 2.

In[1]:= |

Out[2]= |

Generate the multivariate distribution of measurement results based on the assumption that the angles are real:

In[3]:= |

Out[4]= |

Calculate the quantum correlation P_{00}-P_{10}-P_{01}+P_{11}

In[5]:= |

Out[5]= |

Create the quantum phase estimation circuit for a phase operator:

In[6]:= |

Out[7]= |

In[8]:= |

Out[8]= |

In[9]:= |

Out[9]= |

Set time and other variables of the Hamiltonian (Rabi drive and detuning):

In[10]:= |

Out[12]= |

Create a 10-qubit Hamiltonian operator as

In[13]:= |

Evolve quantum state:

In[14]:= |

Plot the probability of observing the register state:

In[15]:= |

Out[15]= |

Plot the Bloch vector evolution:

In[16]:= |

Out[16]= |

- WL built-in symbols
- Paclet dependencies
- Learn More »

Wolfram Language Version 13.1

- 1.4.2 – 28 June 2024
- 1.4.1 – 22 May 2024
- 1.4.0 – 15 May 2024
- 1.3.7 – 06 May 2024
- 1.3.6 – 24 April 2024
- 1.3.5 – 08 April 2024
- 1.3.4 – 13 March 2024
- 1.3.3 – 14 February 2024
- 1.3.2 – 03 February 2024
- 1.3.1 – 17 January 2024
- 1.3.0 – 14 January 2024
- 1.2.15 – 13 January 2024
- 1.2.14 – 25 December 2023
- 1.2.13 – 21 December 2023
- 1.2.12 – 21 November 2023
- 1.2.11 – 01 November 2023
- 1.2.10 – 19 October 2023
- 1.2.9 – 02 October 2023
- 1.2.8 – 16 September 2023
- 1.2.7 – 12 September 2023
- 1.2.6 – 18 August 2023
- 1.2.5 – 17 August 2023
- 1.2.4 – 03 August 2023
- 1.2.3 – 01 August 2023
- 1.2.2 – 21 July 2023
- 1.2.1 – 06 July 2023
- 1.2.0 – 28 June 2023
- 1.1.4 – 28 June 2023
- 1.1.3 – 14 June 2023
- 1.1.2 – 01 June 2023
- 1.1.1 – 23 May 2023
- 1.1.0 – 05 May 2023
- 1.0.35 – 03 May 2023
- 1.0.34 – 26 April 2023
- 1.0.33 – 19 April 2023
- 1.0.31 – 06 April 2023
- 1.0.30 – 03 April 2023
- 1.0.29 – 08 March 2023
- 1.0.28 – 27 January 2023
- 1.0.27 – 01 January 2023
- 1.0.26 – 03 December 2022
- 1.0.25 – 05 November 2022
- 1.0.24 – 18 October 2022
- 1.0.23 – 11 October 2022
- 1.0.22 – 04 October 2022
- 1.0.21 – 30 September 2022
- 1.0.19 – 15 August 2022
- 1.0.18 – 08 August 2022
- 1.0.17 – 16 July 2022
- 1.0.15 – 25 May 2022
- 1.0.14 – 10 May 2022
- 1.0.13 – 24 April 2022
- 1.0.12 – 05 April 2022
- 1.0.11 – 05 April 2022
- 1.0.10 – 05 April 2022
- 1.0.9 – 05 April 2022
- 1.0.8 – 04 April 2022
- 1.0.6 – 04 April 2022
- 1.0.2 – 18 January 2022
- 0.0.1 – 08 March 2023