First we load the QuantumChemistry package
>
|
|
Next we load the QuantumComputing subpackage
>
|
|
| (1) |
Now Maple knows the standard 1- and 2-qubit gates. For example, Pauli Z gate
or the Pauli X and Y gates
>
|
|
or the most general 1-qubit gate, known as the U (universal) gate that depends on 3 angles that we keep symbolic
>
|
|
| (4) |
or a 2-qubit gate like the CNOT gate
| (5) |
All known gates can be returned by calling the command without arguments
| (6) |