Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entangling Capability and Expressibility #92

Merged
merged 68 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
ee29247
added n_samples
stroblme Mar 24, 2024
6a8281e
added logging module
stroblme Mar 24, 2024
587f310
added reporting of parameters
stroblme Mar 24, 2024
48179b8
reporting number of partitions
stroblme Mar 24, 2024
5859fbe
integrated entangling capability and expressibilit in the pipeline
stroblme Mar 24, 2024
ee7ef7a
explicit returning of parameters
stroblme Mar 24, 2024
9dad266
fixed logging
stroblme Mar 24, 2024
a9f4df8
added calc of entangling capability and expressibility
stroblme Mar 24, 2024
8a58199
added combination of measures
stroblme Mar 24, 2024
46ab1ad
measures to data catalog
stroblme Mar 24, 2024
80d39cd
gc
stroblme Mar 24, 2024
9ae9b93
switched to freely parameterizable content
stroblme Mar 24, 2024
27b4c0c
added meas. combination step
stroblme Mar 24, 2024
fff2f88
typing
stroblme Mar 24, 2024
88a251d
adjusted handling of measures
stroblme Mar 24, 2024
25d7756
added viz output
stroblme Mar 25, 2024
0aac68c
adjusted names
stroblme Mar 25, 2024
54390c6
fixed names
stroblme Mar 25, 2024
120ff10
adjusted path
stroblme Mar 25, 2024
1e331f2
adjusted path
stroblme Mar 25, 2024
a83387f
switched to samples per parameter
stroblme Mar 25, 2024
5863080
fixed nan values
stroblme Mar 25, 2024
41df16e
adjusted plot layout
stroblme Mar 25, 2024
a6b0ea8
separated plots
stroblme Mar 25, 2024
a85c147
fixed pep issues
stroblme Mar 25, 2024
f8edee5
removed measure op
stroblme Mar 25, 2024
430f1df
doc
stroblme Mar 25, 2024
5306094
simplified plots
stroblme Mar 25, 2024
3b9d5a7
fixed naming of samples
stroblme Mar 25, 2024
79c58d0
enabled run config again
stroblme Mar 25, 2024
59a01d5
cleaned up comments
stroblme Mar 26, 2024
c2fd76e
prevented qiskit from adding barriers
stroblme Mar 26, 2024
dca80ad
merged calculation of measures into a single node to allow kedro to s…
stroblme Mar 26, 2024
4ea366d
inverse of the expressibility
stroblme Mar 26, 2024
d716fe4
types
stroblme Mar 27, 2024
442d3b0
typing
stroblme Mar 27, 2024
dbafa10
introduced jit and some performance opt
stroblme Mar 27, 2024
0d9a35a
jax added
stroblme Mar 27, 2024
236b84a
added re-using of existent measures
stroblme Mar 28, 2024
f7e334b
switched to samples per qubit
stroblme Mar 28, 2024
865b112
config fix
stroblme Mar 28, 2024
c45bda3
reduced precision
stroblme Mar 28, 2024
b29355a
replaced haar integral with qiskits built in method
stroblme Mar 29, 2024
1ff54a4
catching trivial circuits
stroblme Mar 29, 2024
2fe4f30
introduced samples per qubit param
stroblme Mar 29, 2024
7f5519f
gc
stroblme Mar 29, 2024
4226221
simplified space
stroblme Mar 29, 2024
f7d0dfe
introduced cached haar integral
stroblme Mar 29, 2024
e584cbf
backend init
stroblme Mar 29, 2024
8c3904f
hashed pqcs
stroblme Mar 29, 2024
925e44b
added scaling with n qubits
stroblme Mar 29, 2024
b3da9c9
increased number of haar samples
stroblme Mar 29, 2024
7c6024a
fixing base10 calc
stroblme Apr 1, 2024
3b49c8f
added measure calc to diag
stroblme Apr 1, 2024
bc5272e
pep
stroblme Apr 1, 2024
2093be8
fig shading
stroblme Apr 1, 2024
aa802bb
background
stroblme Apr 1, 2024
219ac17
colors
stroblme Apr 2, 2024
da90ed2
fixed trace calculation
May 28, 2024
4abf18a
added tests
Jun 5, 2024
12e6da5
fixed min max location
Jun 5, 2024
b3cc5de
extended test for variance
Jun 5, 2024
524f254
code cleanup and comments
Jun 5, 2024
882ca6b
Merge branch 'main' into entangling_capability
Jun 5, 2024
785fe65
added assertion error messages
Jun 6, 2024
cb4c49b
added line breaks for pep
Jun 6, 2024
3971949
more line breaks
Jun 6, 2024
ac7baa7
Merge branch 'main' into entangling_capability
Jun 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Test",
"type": "python",
"request": "launch",
"module": "pytest",
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Default",
"type": "python",
Expand Down
19 changes: 14 additions & 5 deletions conf/base/catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,22 @@ qasm_circuits: # example to save results to multiple partitions
path: data/03_qasm_circuits/
filename_suffix: ".txt"

measures: # example to save results to multiple partitions
type: PartitionedDataSet
dataset:
type: pandas.CSVDataSet
# save_args:
# index: False
path: data/04_measures/
filename_suffix: ".csv"

execution_results: # example to save results to multiple partitions
type: PartitionedDataSet
dataset:
type: pandas.CSVDataSet
# save_args:
# index: False
path: data/04_execution_results/
path: data/05_execution_results/
filename_suffix: ".csv"

execution_durations: # example to save results to multiple partitions
Expand All @@ -44,23 +53,23 @@ execution_durations: # example to save results to multiple partitions
type: pandas.CSVDataSet
# save_args:
# index: False
path: data/05_execution_durations/
path: data/06_execution_durations/
filename_suffix: ".csv"


evaluations_combined:
type: pandas.CSVDataSet
filepath: data/06_evaluations_combined/evaluations_combined.csv
filepath: data/07_evaluations_combined/evaluations_combined.csv
# save_args:
# index: False
versioned: true

dummy_versioned_dataset: # example to save results to multiple
type: pandas.CSVDataSet
filepath: data/07_reporting/dummy.csv
filepath: data/08_reporting/dummy.csv
versioned: true

# numpy_fw_depth_1: # example to save results to multiple
# type: plotly.JSONDataSet
# filepath: data/07_reporting/numpy_fw_depth_1.json
# filepath: data/08_reporting/numpy_fw_depth_1.json
# versioned: true
26 changes: 21 additions & 5 deletions conf/base/parameters/data_generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

data_generation:
seed: 1111
# samples for calculating the expressibility and entangling capability
samples_per_parameter: 20
haar_samples_per_qubit: 60

min_qubits: 1
max_qubits: 16
Expand All @@ -26,6 +29,10 @@ data_generation:

# data_generation:
# seed: 1111
# samples for calculating the expressibility and entangling capability
# samples_per_parameter: 20
# haar_samples_per_qubit: 20


# min_qubits: 1
# max_qubits: 12
Expand All @@ -50,6 +57,9 @@ data_generation:

# data_generation:
# seed: 1111
# samples for calculating the expressibility and entangling capability
# samples_per_parameter: 20
# haar_samples_per_qubit: 20

# min_qubits: 1
# max_qubits: 5
Expand All @@ -74,6 +84,9 @@ data_generation:

# data_generation:
# seed: 1111
# samples for calculating the expressibility and entangling capability
# samples_per_parameter: 20
# haar_samples_per_qubit: 20

# min_qubits: 1
# max_qubits: 3
Expand All @@ -98,18 +111,21 @@ data_generation:

# data_generation:
# seed: 1111
# # samples for calculating the expressibility and entangling capability
# samples_per_parameter: 20
# haar_samples_per_qubit: 20

# min_qubits: 1
# max_qubits: 4
# min_qubits: 15
# max_qubits: 16
# qubits_increment: 1
# qubits_type: "linear"

# min_depth: 0
# max_depth: 5
# min_depth: 9
# max_depth: 10
# depth_increment: 1
# depth_type: "exp2"

# min_shots: 0
# min_shots: 5
# max_shots: 5
# shots_increment: 1
# shots_type: "exp2"
Expand Down
2 changes: 1 addition & 1 deletion conf/base/parameters/visualization.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
visualization:
additional_figures: []
skip_frameworks: [] #numpy_fw
output_folder: "data/08_print"
output_folder: "data/09_print"
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added data/09_print/.gitkeep
Empty file.
192 changes: 107 additions & 85 deletions docs/overview.drawio

Large diffs are not rendered by default.

Binary file modified docs/overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading