2023-07-05 18:29:11 +00:00
A library to manipulate qubits and simulate quantum circuits
Github found [here ](https://github.com/phbaudin/quantum-computing ).
```
QuantumRegister EPRPair = QuantumRegister.EPRPair; // (|00> + |11>) / √2 (Einstein– Podolsky– Rosen pair)
QuantumRegister WState = QuantumRegister.WState; // (|001> + |010> + |100>) / √3 (W state)
QuantumRegister WState4 = QuantumRegister.WStateOfLength(4); // (|0001> + |0010> + |0100> + |1000>) / 2 (generalized W state for 4 qubits)
QuantumRegister GHZState = QuantumRegister.GHZState; // (|000> + |111>) / √2 (simplest Greenberger– Horne– Zeilinger state)
QuantumRegister GHZState4 = QuantumRegister.GHZStateOfLength(4); // (|0000> + |1111>) / √2 (GHZ state for 4 qubits)
```
2023-09-01 13:44:23 +00:00
It seems to be an early precursor to Q#.
This is an excellent article on [how to translate a Gaussian Wave Function ](https://guenp.medium.com/preparing-a-gaussian-wave-function-in-q-695c3941f6dc ) in Q#.