Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chmwzc committed Feb 9, 2024
1 parent 2eccad1 commit 79f7f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/source/getting-started/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Here is an example of building the UCCD ansatz with the H2 molecule to test your
hamiltonian = h2.hamiltonian()

# Build a UCC circuit ansatz for running VQE
circuit = hf_circuit(h2.nso, sum(h2.nelec))
circuit = hf_circuit(h2.nso, h2.nelec)
circuit += ucc_circuit(h2.nso, [0, 1, 2, 3])

# Create and run the VQE, starting with random initial parameters
Expand Down
2 changes: 1 addition & 1 deletion doc/source/tutorials/ansatz.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ An example of how to build a UCC doubles circuit ansatz for the :math:`H_2` mole
# Set parameters for the rest of the experiment
n_qubits = mol.nso
n_electrons = mol.nalpha + mol.nbeta
n_electrons = mol.nelec
# Build UCCD circuit
circuit = hf_circuit(n_qubits, n_electrons) # Start with HF circuit
Expand Down

0 comments on commit 79f7f00

Please sign in to comment.