Skip to content

Commit

Permalink
fixing spellings
Browse files Browse the repository at this point in the history
  • Loading branch information
sacpis committed Jul 18, 2024
1 parent aa3b157 commit 357903e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/config/spelling_allowlist.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
AFQMC
API
APIs
AST
Expand All @@ -11,6 +12,7 @@ CLI
CMake
CNOT
COBYLA
cpp
CPTP
CPU
CPUs
Expand All @@ -35,6 +37,7 @@ HTTP
HTTPS
Hadamard
Hadamards
hamiltonian
Hamiltonian
Hamiltonians
IQM
Expand All @@ -46,8 +49,10 @@ JupyterLab
Kagome
Kraus
LLVM
LPX
LSB
Libraries
LXmn
MCA
MLIR
MPI
Expand All @@ -73,6 +78,7 @@ Pauli
Paulis
PyPI
Pygments
pyscf
QAOA
QCaaS
QIR
Expand All @@ -93,6 +99,7 @@ SDK
SLED
SLES
SLURM
SpinOperator
SVD
Superpositions
TCP
Expand Down Expand Up @@ -129,7 +136,10 @@ canonicalization
canonicalize
canonicalizer
canonicalizes
chol
ci
codebase
coeffs
comparator
comparators
composability
Expand Down Expand Up @@ -161,6 +171,7 @@ discoverable
discretization
discretize
discretized
ecore
eigensolver
eigensolvers
eigenstate
Expand All @@ -169,6 +180,7 @@ eigenvalue
eigenvalues
eigenvector
eigenvectors
elec
enqueue
enqueues
enqueuing
Expand All @@ -188,6 +200,7 @@ frontend
frontends
homogenous
iff
ipie
increment
incrementing
initializer
Expand All @@ -210,15 +223,23 @@ lossy
lvalue
makefiles
merchantability
mgpu
multithreaded
mutex
namespace
namespaces
natively
normalization
np
nullary
nvidia
occa
occb
openfermion
optimizer
optimizers
param
params
parallelization
parallelize
parallelizing
Expand All @@ -244,6 +265,7 @@ runtimes
rvalue
scalability
scalable
scf
sexualized
statevector
struct
Expand All @@ -269,6 +291,8 @@ summarize
superpositions
symplectic
tablegen
th
thres
templated
toolchain
toolchains
Expand All @@ -282,9 +306,11 @@ unitarity
unitary
unoptimized
upvote
utils
variadic
variational
verifier
vertices
veq
wavefunction
workflow
10 changes: 5 additions & 5 deletions docs/sphinx/examples/python/tutorials/src/utils_ipie.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def gen_ipie_input_from_pyscf_chk(pyscf_chkfile: str,
num_frozen_core=num_frozen_core,
verbose=False,
)
# write_hamiltonian(ham.H1[0], copy_LPX_to_LXmn(ham.chol), ham.ecore, filename=hamil_file)
# write_hamiltonian(ham.H1[0], copy_LPX_to_LXmn(ham.chol), ham.ecore, filename=hamiltonian_file)
ipie_ham = (ham.H1[0], copy_LPX_to_LXmn(ham.chol), ham.ecore)
nelec = (mol.nelec[0] - num_frozen_core, mol.nelec[1] - num_frozen_core)
if verbose:
Expand All @@ -105,16 +105,16 @@ def gen_ipie_input_from_pyscf_chk(pyscf_chkfile: str,
# ci_coeffs = scf_data["ci_coeffs"]
# occa = scf_data["occa"]
# occb = scf_data["occb"]
# write_wavefunction((ci_coeffs, occa, occb), wfn_file)
# write_wavefunction((ci_coeffs, occa, occb), wavefunction_file)
return ipie_ham
else:
wfn = generate_wavefunction_from_mo_coeff(
wavefunction = generate_wavefunction_from_mo_coeff(
mo_coeffs,
mo_occ,
basis_change_matrix,
nelec,
ortho_ao=ortho_ao,
num_frozen_core=num_frozen_core,
)
# write_wavefunction(wfn, wfn_file)
return ipie_ham, wfn
# write_wavefunction(wavefunction, wavefunction_file)
return ipie_ham, wavefunction
4 changes: 2 additions & 2 deletions docs/sphinx/examples/python/tutorials/src/vqe_cudaq_qnp.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def prepare_initial_circuit(self):

def layers(self):
"""
Generates the QNP ansatz circuit and returns the kernel and the optimization paramenters thetas
Generates the QNP ansatz circuit and returns the kernel and the optimization parameters thetas
params: list/np.array
[theta_0, ..., theta_{M-1}, phi_0, ..., phi_{M-1}]
Expand Down Expand Up @@ -145,7 +145,7 @@ def layers(self):

def get_state_vector(self, param_list):
"""
Returns the state vector generated by the ansatz with paramters given by param_list
Returns the state vector generated by the ansatz with parameters given by param_list
"""
kernel, thetas = self.layers()
state = convert_state_big_endian(
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/specification/quake-dialect.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ is as follows: In value form we need to follow a chain of values to
know the qubit operators are being applied to, in this example:

```text
Mmeory Value
Memory Value
%q0 [%q0_0, %q0_1 ... %q0_L, %q0_M; %q0_P ... %q0_Y, %q0_Z]
```
Expand Down

0 comments on commit 357903e

Please sign in to comment.