Skip to content

Commit 038c027

Browse files
committed
try local class definitions
1 parent 403b651 commit 038c027

File tree

2 files changed

+207
-1
lines changed

2 files changed

+207
-1
lines changed

content/qchem/h2-molecule/class.json

Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
{
2+
"slug": "qchem",
3+
"name": "Qchem",
4+
"attributeList": [
5+
{
6+
"name": "basis_rot_samples",
7+
"pythonType": "list[dict]",
8+
"doc": "List of samples for each grouping of the basis-rotated Hamiltonian terms",
9+
"optional": true
10+
},
11+
{
12+
"name": "basis_rot_groupings",
13+
"pythonType": "tuple[list[tensor_like], list[list[[Operation](https://docs.pennylane.ai/en/stable/code/api/pennylane.operation.Operation.html#pennylane.operation.Operation)], list[tensor_like]]]",
14+
"doc": "List of grouped Hamiltonian terms obtained using [`qml.qchem.basis_rotation`](https://docs.pennylane.ai/en/stable/code/api/pennylane.qchem.basis_rotation.html)",
15+
"optional": false
16+
},
17+
{
18+
"name": "dipole_op",
19+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
20+
"doc": "Qubit dipole moment operators for the chemical system",
21+
"optional": false
22+
},
23+
{
24+
"name": "fci_energy",
25+
"pythonType": "float",
26+
"doc": "Ground state energy of the molecule obtained from exact diagonalization",
27+
"optional": false
28+
},
29+
{
30+
"name": "fci_spectrum",
31+
"pythonType": "numpy.ndarray",
32+
"doc": "First `2 \u00d7 #qubits` eigenvalues obtained from exact diagonalization",
33+
"optional": false
34+
},
35+
{
36+
"name": "hamiltonian",
37+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
38+
"doc": "Hamiltonian of the system in the Pauli basis",
39+
"optional": false
40+
},
41+
{
42+
"name": "hf_state",
43+
"pythonType": "numpy.ndarray",
44+
"doc": "Hartree-Fock state of the chemical system represented by a binary vector",
45+
"optional": false
46+
},
47+
{
48+
"name": "initial_state_dets",
49+
"pythonType": "dict",
50+
"doc": "Slater determinants for initial states of varying quality",
51+
"optional": false
52+
},
53+
{
54+
"name": "initial_state_coeffs",
55+
"pythonType": "dict",
56+
"doc": "Coefficients of Slater determinants for initial states of varying quality",
57+
"optional": false
58+
},
59+
{
60+
"name": "molecule",
61+
"pythonType": "[Molecule](https://docs.pennylane.ai/en/stable/code/api/pennylane.qchem.Molecule.html)",
62+
"doc": "PennyLane Molecule object containing description for the system and basis set",
63+
"optional": false
64+
},
65+
{
66+
"name": "number_op",
67+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
68+
"doc": "Qubit operator for computing total spin \ud835\udc46<sup>2</sup> for the chemical system",
69+
"optional": false
70+
},
71+
{
72+
"name": "optimal_sector",
73+
"pythonType": "numpy.ndarray",
74+
"doc": "Eigensector of the tapered qubits that would contain the ground state",
75+
"optional": false
76+
},
77+
{
78+
"name": "paulix_ops",
79+
"pythonType": "list[[PauliX](https://docs.pennylane.ai/en/stable/code/api/pennylane.PauliX.html#pennylane.PauliX)]",
80+
"doc": "Supporting PauliX ops required to build Clifford \ud835\udc48 for tapering",
81+
"optional": false
82+
},
83+
{
84+
"name": "qwc_groupings",
85+
"pythonType": "tuple[list[tensor_like], list[list[[Operation](https://docs.pennylane.ai/en/stable/code/api/pennylane.operation.Operation.html#pennylane.operation.Operation)], list[tensor_like]]]",
86+
"doc": "List of grouped qubit-wise commuting Hamiltonian terms obtained using [`qml.pauli.optimize_measurements`](https://docs.pennylane.ai/en/stable/code/api/pennylane.pauli.optimize_measurements.html)",
87+
"optional": false
88+
},
89+
{
90+
"name": "qwc_samples",
91+
"pythonType": "list[dict]",
92+
"doc": "List of samples for each grouping of the qubit-wise commuting Hamiltonian terms",
93+
"optional": true
94+
},
95+
{
96+
"name": "sparse_hamiltonian",
97+
"pythonType": "scipy.sparse.csr_array",
98+
"doc": "Sparse matrix representation of a Hamiltonian in the computational basis",
99+
"optional": false
100+
},
101+
{
102+
"name": "spin2_op",
103+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
104+
"doc": "Qubit operator for computing total spin \ud835\udc46<sup>2</sup> for the chemical system",
105+
"optional": false
106+
},
107+
{
108+
"name": "spinz_op",
109+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
110+
"doc": "Qubit operator for computing total spin\u2019s projection in \ud835\udc4d direction",
111+
"optional": false
112+
},
113+
{
114+
"name": "symmetries",
115+
"pythonType": "list[[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)]",
116+
"doc": "Symmetries required for tapering molecular Hamiltonian",
117+
"optional": false
118+
},
119+
{
120+
"name": "tapered_dipole_op",
121+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
122+
"doc": "Tapered dipole moment operator",
123+
"optional": false
124+
},
125+
{
126+
"name": "tapered_hamiltonian",
127+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
128+
"doc": "Tapered Hamiltonia",
129+
"optional": false
130+
},
131+
{
132+
"name": "tapered_hf_state",
133+
"pythonType": "numpy.ndarray",
134+
"doc": "Tapered Hartree-Fock state of the molecule",
135+
"optional": false
136+
},
137+
{
138+
"name": "tapered_num_op",
139+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
140+
"doc": "Tapered number operator",
141+
"optional": false
142+
},
143+
{
144+
"name": "tapered_spin2_op",
145+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
146+
"doc": "Tapered total spin operator",
147+
"optional": false
148+
},
149+
{
150+
"name": "tapered_spinz_op",
151+
"pythonType": "[Hamiltonian](https://docs.pennylane.ai/en/stable/code/api/pennylane.Hamiltonian.html#pennylane.Hamiltonian)",
152+
"doc": "Tapered spin projection operator",
153+
"optional": false
154+
},
155+
{
156+
"name": "vqe_energy",
157+
"pythonType": "float",
158+
"doc": "Energy obtained from the state prepared by the optimized circuit",
159+
"optional": true
160+
},
161+
{
162+
"name": "vqe_gates",
163+
"pythonType": "list[[Operation](https://docs.pennylane.ai/en/stable/code/api/pennylane.operation.Operation.html#pennylane.operation.Operation)]",
164+
"doc": "[`SingleExcitation`](https://docs.pennylane.ai/en/stable/code/api/pennylane.SingleExcitation.html#pennylane.SingleExcitation) and [`DoubleExcitation`](https://docs.pennylane.ai/en/stable/code/api/pennylane.DoubleExcitation.html#pennylane.DoubleExcitation) gates for the optimized circuit",
165+
"optional": true
166+
},
167+
{
168+
"name": "vqe_params",
169+
"pythonType": "numpy.ndarray",
170+
"doc": "Optimal parameters for the gates that prepares ground state",
171+
"optional": true
172+
}
173+
],
174+
"parameterList": [
175+
{
176+
"name": "molname",
177+
"title": "Molecule Name",
178+
"description": null,
179+
"optional": false
180+
},
181+
{
182+
"name": "basis",
183+
"title": "Basis",
184+
"description": null,
185+
"optional": false
186+
},
187+
{
188+
"name": "bondlength",
189+
"title": "Bond length",
190+
"description": null,
191+
"optional": true
192+
},
193+
{
194+
"name": "bondangle",
195+
"title": "Bond angle",
196+
"description": null,
197+
"optional": true
198+
},
199+
{
200+
"name": "number_of_spin_orbitals",
201+
"title": "Number of spin orbitals",
202+
"description": null,
203+
"optional": false
204+
}
205+
]
206+
}

content/qchem/h2-molecule/dataset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"slug": "h2-molecule",
33
"class": {
4-
"$path": "/qchem/_meta/class.json"
4+
"$path": "class.json"
55
},
66
"collection": {
77
"$path": "/qchem/_meta/collection.json"

0 commit comments

Comments
 (0)